Documentation ¶
Overview ¶
Package api contains the external API for Horde
Index ¶
Constants ¶
View Source
const AuthKey = contextKey("auth")
AuthKey is the context key for the authentication method in the context
View Source
const UserKey = contextKey("user")
UserKey is the context key for the user object in the context
Variables ¶
This section is empty.
Functions ¶
func NewHordeAPIService ¶
func NewHordeAPIService(store storage.DataStore, fieldMask model.FieldMaskParameters, outputManager output.Manager, dataStoreClient datastore.DataStoreClient, messageSender DownstreamMessageSender, firmwareImageStore storage.FirmwareImageStore) apipb.HordeServer
NewHordeAPIService creates a new HordeAPIServer
Types ¶
type DownstreamMessageSender ¶
type DownstreamMessageSender interface {
Send(model.Device, model.DownstreamMessage) error
}
DownstreamMessageSender is a type capable of sending messages downstream.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package apipb is a reverse proxy.
|
Package apipb is a reverse proxy. |
Package apitoolbox contains utility methods for the API services
|
Package apitoolbox contains utility methods for the API services |
Click to show internal directories.
Click to hide internal directories.