Documentation ¶
Index ¶
- func CurrentDAPClient(store *models.Store, table gdb.Table) (*dap.Client, *framework.HTTPError)
- func CurrentIdentityOrError(store *models.Store, table gdb.Table) (*models.Identity, *framework.HTTPError)
- func DAPClientFromID(id *models.Identity, store *models.Store) (*dap.Client, error)
- func DecodeJSONBody(req *http.Request, object interface{}) error
- type AddContact
- type AddList
- type CheckForPluginUpdatesController
- type CheckUpdateController
- type CurrentIdentity
- type CurrentProfile
- type CurrentTiles
- type DownloadUpdateController
- type FileUploader
- type GetAllMessagesAt
- type GetLists
- type GetMessage
- type InstallPluginController
- type InstallUpdateController
- type ListContacts
- type ListIdentity
- type Messages
- type NewMessage
- type PluginStoreController
- type RealtimeHandler
- func (r *RealtimeHandler) AcceptLink(d interface{}) (string, map[string]interface{})
- func (r *RealtimeHandler) HandleWSRequest(t string, d interface{}) (string, interface{})
- func (r *RealtimeHandler) RequestLink(d interface{}) (string, map[string]interface{})
- func (r *RealtimeHandler) StartLink(d interface{}) (string, map[string]interface{})
- func (r *RealtimeHandler) UpgradeConnection(res http.ResponseWriter, req *http.Request)
- type RemoveContact
- type RemoveIdentity
- type RemoveList
- type SaveIdentity
- type UninstallPluginController
- type UpdateContact
- type UpdateMessage
- type UpdatePluginController
- type UpdateProfile
- type UpdateProgressController
- type UpdateTiles
- type UploadController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentDAPClient ¶
CurrentDAPClient will return the current DAPClient associated with the curernt Identity.
func CurrentIdentityOrError ¶
func CurrentIdentityOrError(store *models.Store, table gdb.Table) (*models.Identity, *framework.HTTPError)
CurrentIdentityOrError will retrieve the current Identity object from the store.
func DAPClientFromID ¶
func DecodeJSONBody ¶
DecodeJSONBody will take a request and a destination interface and decode the JSON from the request into object.
Types ¶
type AddContact ¶
type CheckUpdateController ¶
type CurrentIdentity ¶
CurrentIdentity manages a REST-ful service for updating and retrieving the currently utilized identity.
type CurrentProfile ¶
type CurrentTiles ¶
type DownloadUpdateController ¶
type DownloadUpdateController struct{}
type FileUploader ¶
type GetAllMessagesAt ¶
GetMessage controller will download a single message as specified by Alias and Name
type GetMessage ¶
GetMessage controller will download a single message as specified by Alias and Name
type InstallPluginController ¶
InstallPluginController will install a plugin from a specific github repository.
type InstallUpdateController ¶
type InstallUpdateController struct {
AppLocation string
}
type ListContacts ¶
ListContacts will return a list (in JSON) of all of the contacts stored for an identity.
type ListIdentity ¶
ListIdentity will list all identities on file.
type Messages ¶
type Messages struct { Packager *packaging.Packager Store *models.Store Tables map[string]gdb.Table }
Messages Controller will download messages from the server and subscribed sources (with caching), and send them to the client in JSON.
type NewMessage ¶
type NewMessage struct { Store *models.Store Tables map[string]gdb.Table Packager *packaging.Packager }
NewMessage will create and send a new message either with or without an alert.
type PluginStoreController ¶
ServerLists will return the list of Trackers or Servers from getmelange.com.
type RealtimeHandler ¶
type RealtimeHandler struct { Store *models.Store Tables map[string]gdb.Table Packager *packaging.Packager Suffix string // contains filtered or unexported fields }
RealtimeHandler connects one websocket-enabled client to the backend go server.
func CreateRealtimeHandler ¶
func (*RealtimeHandler) AcceptLink ¶
func (r *RealtimeHandler) AcceptLink(d interface{}) (string, map[string]interface{})
func (*RealtimeHandler) HandleWSRequest ¶
func (r *RealtimeHandler) HandleWSRequest(t string, d interface{}) (string, interface{})
HandleWSRequest will handle one WS request from the client.
func (*RealtimeHandler) RequestLink ¶
func (r *RealtimeHandler) RequestLink(d interface{}) (string, map[string]interface{})
func (*RealtimeHandler) StartLink ¶
func (r *RealtimeHandler) StartLink(d interface{}) (string, map[string]interface{})
func (*RealtimeHandler) UpgradeConnection ¶
func (r *RealtimeHandler) UpgradeConnection(res http.ResponseWriter, req *http.Request)
UpgradeConnection will upgrade a normal HTTP Request to the Websocket protocol.
type RemoveContact ¶
type RemoveIdentity ¶
type RemoveList ¶
type SaveIdentity ¶
type SaveIdentity struct { Tables map[string]gdb.Table Store *models.Store Packager *packaging.Packager }
SaveIdentity will create, register, alias, and save a new Identity.
type UninstallPluginController ¶
UninstallPluginController uninstalls a plugin given the ID of the plugin.
type UpdateContact ¶
type UpdateMessage ¶
UpdateMessage will take a request with a messageId and a newMessage and change the server to point messageId to newMessage.
type UpdatePluginController ¶
type UpdateProfile ¶
type UpdateProgressController ¶
type UpdateProgressController struct{}
type UpdateTiles ¶
type UploadController ¶
func (*UploadController) HandleWSRequest ¶
func (m *UploadController) HandleWSRequest(data map[string]interface{}, ws chan<- interface{}, uploadID string) error