Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotImplemented is a placeholder errors message for missing // interface implementations. ErrNotImplemented = errors.New("functionality is not implemented") ErrNoUser = errors.New("user parameter missing from context") ErrNoHost = errors.New("host parameter missing from context") )
Functions ¶
This section is empty.
Types ¶
type AllBridgeParams ¶
type AllBridgeParams struct {
Method string
}
type Client ¶
type Client interface { AllLights(context.Context) ([]interface{}, error) NewLights(context.Context) (interface{}, error) SearchLights(context.Context, []string) error GetLight(context.Context, int) (interface{}, error) RenameLight(context.Context, string, string) (interface{}, error) LightState(context.Context, int, interface{}) (interface{}, error) Toggle(context.Context, int) (interface{}, error) DeleteLight(context.Context, string) error AllGroups(context.Context) ([]interface{}, error) CreateGroup(context.Context, interface{}) (interface{}, error) GetGroup(context.Context, string) (interface{}, error) SaveGroup(context.Context, string, interface{}) (interface{}, error) SetGroupState(context.Context, string, interface{}) (interface{}, error) DeleteGroup(context.Context, string) error AllSchedules() ([]interface{}, error) CreateSchedule(interface{}) (interface{}, error) GetSchedule(string) (interface{}, error) SetSchedule(string, interface{}) (interface{}, error) DeleteSchedule(string) error AllScenes() ([]interface{}, error) GetScene(string) (interface{}, error) CreateScene(interface{}) (interface{}, error) SetScene(string, interface{}) (interface{}, error) DeleteScene(string) error AllSensors() ([]interface{}, error) CreateSensor(interface{}) (interface{}, error) SearchSensors() error NewSensors() ([]interface{}, error) GetSensor(string) (interface{}, error) SetSensor(string, interface{}) (interface{}, error) RenameSensor(string, string) (interface{}, error) DeleteSensor(string) error AllRules() ([]interface{}, error) GetRule(string) (interface{}, error) CreateRule(interface{}) (interface{}, error) UpdateRule(string, interface{}) (interface{}, error) DeleteRule(string) error AllBridges(context.Context, interface{}) ([]interface{}, error) CreateUser(interface{}) (interface{}, error) GetConfig(context.Context) (interface{}, error) ModifyConfig(interface{}) (interface{}, error) Unwhitelist(string) error GetFullState(context.Context) (interface{}, error) }
type SearchParams ¶
type SearchParams struct {
Devices []string `json:"deviceid"`
}
Click to show internal directories.
Click to hide internal directories.