Versions in this module Expand all Collapse all v0 v0.1.6 Sep 10, 2022 Changes in this version type NodeItem + CookieDomain string type Register + CookieDomain string + Scramble bool + Secret bool v0.1.5 Sep 5, 2021 v0.1.4 Sep 5, 2021 Changes in this version type Configuration + SwiftFile string v0.1.3 Sep 1, 2021 Changes in this version + func AddHandlers(services *Services, ...) + func Create(s *Services, h string, q url.Values) (string, error) + func HandlerCreate(s *Services) http.HandlerFunc + func HandlerDecodeAsJSON(s *Services) http.HandlerFunc + func HandlerDecrypt(s *Services) http.HandlerFunc + func HandlerEncrypt(s *Services) http.HandlerFunc + func HandlerNodes(s *Services) http.HandlerFunc + func HandlerNodesJSON(s *Services) http.HandlerFunc + func HandlerRegister(s *Services) http.HandlerFunc + func HandlerShare(s *Services) http.HandlerFunc + func HandlerStore(s *Services, e func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc + func NewStorageService(c Configuration, sts ...Store) storageService + func SetHomeNodeHeaders(r *http.Request, q *url.Values) + func SetURL(sourceKey string, destKey string, values *url.Values) error + func ValidateURL(name string, value string) (*url.URL, error) + type AWS struct + func NewAWS() (*AWS, error) + func (c *AWS) GetAccessNode(network string) (string, error) + type Access interface + GetAllowed func(accessKey string) (bool, error) + type AccessSimple struct + func NewAccessSimple(validKeys []string) *AccessSimple + func (a *AccessSimple) GetAllowed(accessKey string) (bool, error) + type Azure struct + func NewAzure(account string, accessKey string) (*Azure, error) + func (c *Azure) GetAccessNode(network string) (string, error) + type BrowserDetector interface + GetWarningHTML func(r *http.Request) string + type BrowserRegexes struct + func NewBrowserRegexes() (*BrowserRegexes, error) + func (b *BrowserRegexes) GetWarningHTML(r *http.Request) string + type Configuration struct + AlivePollingSeconds int + BackgroundColor string + Debug bool + HomeNodeTimeout int + MaxStores int + Message string + MessageColor string + NodeCount byte + ProgressColor string + Scheme string + StorageManagerRefreshMinutes int + StorageOperationTimeout int + Title string + func NewConfig(file string) Configuration + func (c *Configuration) HomeNodeTimeoutDuration() time.Duration + func (c *Configuration) StorageOperationTimeoutDuration() time.Duration + func (c *Configuration) Validate() error + type Firebase struct + func NewFirebase(project string) (*Firebase, error) + func (c *Firebase) GetAccessNode(network string) (string, error) + type HTML struct + BackgroundColor string + Message string + MessageColor string + ProgressColor string + Title string + func (h *HTML) DisplayUserInterface() bool + func (h *HTML) DisplayUserInterfaceAsString() string + func (h *HTML) JavaScript() bool + func (h *HTML) PostMessageOnComplete() bool + func (h *HTML) PostMessageOnCompleteAsString() string + func (h *HTML) SetDisplayUserInterface(v bool) + func (h *HTML) SetJavaScript(v bool) + func (h *HTML) SetPostMessageOnComplete(v bool) + func (h *HTML) SetUseHomeNode(v bool) + func (h *HTML) UseHomeNode() bool + func (h *HTML) UseHomeNodeAsString() string + func (h *HTML) UseJavaScriptAsString() string + type Local struct + func NewLocalStore(nodesFile string) (*Local, error) + func (c *Local) GetAccessNode(network string) (string, error) + type NodeItem struct + Created time.Time + Domain string + Expires int64 + Network string + Role int + ScramblerKey string + Starts time.Time + type NodeView struct + Accessed time.Time + Alive bool + Created time.Time + Domain string + Expires time.Time + Network string + Role int + Starts time.Time + type NodeViews struct + Nodes []NodeView + func (nv *NodeViews) NodeViewItems() []NodeView + type Pair struct + func (p *Pair) Created() time.Time + func (p *Pair) Expires() time.Time + func (p *Pair) Key() string + func (p *Pair) Value() string + func (p *Pair) Values() [][]byte + type Register struct + DisplayErrors bool + Domain string + Error string + Expires time.Time + ExpiresError string + Network string + NetworkError string + ReadOnly bool + Role int + RoleError string + Services *Services + Starts time.Time + StartsError string + Store string + StoreError string + StoreNames []string + func (r *Register) BackgroundColor() string + func (r *Register) ExpiresString() string + func (r *Register) Language() string + func (r *Register) MessageColor() string + func (r *Register) StartsString() string + type Results struct + func DecodeResults(d []byte) (*Results, error) + func (r *Results) Get(key string) *Pair + func (r *Results) IsTimeStampValid() bool + func (r *Results) Map() map[string]*Pair + func (r *Results) Pairs() []*Pair + func (r *Results) State() []string + type SecretItem struct + Domain string + Expires int64 + ScramblerKey string + TimeStamp time.Time + type Services struct + func NewServices(config Configuration, store storageService, access Access, ...) *Services + func (s *Services) Config() *Configuration + func (s *Services) GetAccessNodeForHost(h string) (*node, error) + func (s *Services) GetAliveNodesCount() (uint32, error) + func (s *Services) GetHomeNode(r *http.Request) (*node, error) + type Store interface + func NewStore(swiftConfig Configuration) []Store + type Volatile struct + func (c *Volatile) GetAccessNode(network string) (string, error)