Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { AddDevice(ctx context.Context, device types.Device) (string, error) GetDeviceByID(ctx context.Context, deviceID string) (*types.Device, error) GetDevicesByIDs(ctx context.Context, deviceIDs []string) ([]types.Device, error) GetUserDevicePermissions(ctx context.Context, userID string, deviceID string) (perms types.DevicePermissions, err error) GetUserDevices(ctx context.Context, userID string) ([]types.Device, error) GetUserByID(ctx context.Context, id string) (*types.User, error) }
Database is interface for database
type Devmgmt ¶
type Devmgmt interface { FetchDeviceState(ctx context.Context, device types.Device) (types.DeviceResponse, error) SendActionCommand( ctx context.Context, device types.Device, command string, params map[string]interface{}, ) (types.DeviceResponse, error) }
Devmgmt is shortcut for DeviceManager
type Fulfillment ¶
Fulfillment hold root server state
Click to show internal directories.
Click to hide internal directories.