Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIErrorDeviceNotFound = 1 APIErrorBodyParsing = 2 APIErrorDatabase = 3 APIErrorInvalidValue = 4 APIErrorExpiredToken = 6 TokenName = "EiPAccessToken" TokenExpirationTime = 86400 // in seconds: 1day )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { EventsToBackend chan map[string]interface{} // contains filtered or unexported fields }
type APIFunctions ¶
type APIFunctions struct {
Functions []string `json:"functions"`
}
type Claims ¶
type Claims struct { Username string `json:"username"` jwt.StandardClaims }
type Credentials ¶
type InternalAPI ¶
type InternalAPI struct { EventsToBackend chan map[string]interface{} // contains filtered or unexported fields }
func InitInternalAPI ¶
func InitInternalAPI(db database.Database, conf pkg.ServiceConfig) *InternalAPI
InitInternalAPI start API connection
Click to show internal directories.
Click to hide internal directories.