Documentation ¶
Index ¶
- Constants
- type Application
- func (app *Application) HandleBookmarksRecent(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandleGetClients(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandleGetStorageCollection(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandleHistoryRecent(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandlePostBookmarks(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandlePostClientsTab(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandleProfile(w http.ResponseWriter, r *http.Request)
- func (app *Application) HandleTabs(w http.ResponseWriter, r *http.Request)
- type BookmarkPayload
- type BookmarkPayloads
- type ClientCommand
- type ClientPayload
- type Config
- type Credentials
- type CredentialsCache
- type CredentialsCacheEntry
- type HistoryPayload
- type HistoryPayloads
- type HistoryVisit
- type PostBookmarkRequest
- type PostClientTabRequest
- type ProfileResponse
- type Tab
- type TabsPayload
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func SetupRouter ¶
func SetupRouter(r *mux.Router, config Config) (*Application, error)
func (*Application) HandleBookmarksRecent ¶
func (app *Application) HandleBookmarksRecent(w http.ResponseWriter, r *http.Request)
func (*Application) HandleGetClients ¶
func (app *Application) HandleGetClients(w http.ResponseWriter, r *http.Request)
func (*Application) HandleGetStorageCollection ¶
func (app *Application) HandleGetStorageCollection(w http.ResponseWriter, r *http.Request)
func (*Application) HandleHistoryRecent ¶
func (app *Application) HandleHistoryRecent(w http.ResponseWriter, r *http.Request)
func (*Application) HandlePostBookmarks ¶
func (app *Application) HandlePostBookmarks(w http.ResponseWriter, r *http.Request)
func (*Application) HandlePostClientsTab ¶
func (app *Application) HandlePostClientsTab(w http.ResponseWriter, r *http.Request)
func (*Application) HandleProfile ¶
func (app *Application) HandleProfile(w http.ResponseWriter, r *http.Request)
func (*Application) HandleTabs ¶
func (app *Application) HandleTabs(w http.ResponseWriter, r *http.Request)
type BookmarkPayload ¶
type BookmarkPayload struct { Id string `json:"id"` Type string `json:"type"` ParentId string `json:"parentid"` ParentName string `json:"parentName"` URL string `json:"bmkUri"` Tags []string `json:"tags"` Title string `json:"title"` Children []string `json:"children,omitempty"` Modified float64 `json:"modified,omitempty"` }
type BookmarkPayloads ¶
type BookmarkPayloads []BookmarkPayload
func (BookmarkPayloads) Len ¶
func (slice BookmarkPayloads) Len() int
func (BookmarkPayloads) Less ¶
func (slice BookmarkPayloads) Less(i, j int) bool
func (BookmarkPayloads) Swap ¶
func (slice BookmarkPayloads) Swap(i, j int)
type ClientCommand ¶
type ClientPayload ¶
type Credentials ¶
type CredentialsCache ¶
type CredentialsCache struct { sync.Mutex Entries map[string]CredentialsCacheEntry }
func NewCredentialsCache ¶
func NewCredentialsCache(ttl time.Duration) *CredentialsCache
func (*CredentialsCache) Get ¶
func (cc *CredentialsCache) Get(username, password string) (Credentials, bool)
func (*CredentialsCache) Put ¶
func (cc *CredentialsCache) Put(credentials Credentials, duration time.Duration)
type CredentialsCacheEntry ¶
type CredentialsCacheEntry struct { Credentials Credentials Expires time.Time }
func (*CredentialsCacheEntry) IsExpired ¶
func (e *CredentialsCacheEntry) IsExpired() bool
type HistoryPayload ¶
type HistoryPayload struct { Id string `json:"id"` URL string `json:"histUri"` Title string `json:"title"` Visits []HistoryVisit `json:"visits"` }
type HistoryPayloads ¶
type HistoryPayloads []HistoryPayload
func (HistoryPayloads) Len ¶
func (slice HistoryPayloads) Len() int
func (HistoryPayloads) Less ¶
func (slice HistoryPayloads) Less(i, j int) bool
func (HistoryPayloads) Swap ¶
func (slice HistoryPayloads) Swap(i, j int)
type HistoryVisit ¶
type PostBookmarkRequest ¶
type PostClientTabRequest ¶
type ProfileResponse ¶
type TabsPayload ¶
Click to show internal directories.
Click to hide internal directories.