Documentation ¶
Index ¶
- Constants
- type AlexaSkillEndpoint
- func (n *AlexaSkillEndpoint) Add(params *m.AlexaSkill) (result *m.AlexaSkill, errs validator.ValidationErrorsTranslations, err error)
- func (n *AlexaSkillEndpoint) Delete(skillId int64) (err error)
- func (n *AlexaSkillEndpoint) GetById(appId int64) (result *m.AlexaSkill, err error)
- func (n *AlexaSkillEndpoint) GetList(limit, offset int64, order, sortBy string) (result []*m.AlexaSkill, total int64, err error)
- func (n *AlexaSkillEndpoint) Update(params *m.AlexaSkill) (skill *m.AlexaSkill, errs validator.ValidationErrorsTranslations, err error)
- type AreaEndpoint
- func (n *AreaEndpoint) Add(ctx context.Context, params *m.Area) (result *m.Area, errs validator.ValidationErrorsTranslations, err error)
- func (n *AreaEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (n *AreaEndpoint) GetById(ctx context.Context, id int64) (result *m.Area, err error)
- func (n *AreaEndpoint) GetByName(ctx context.Context, name string) (result *m.Area, err error)
- func (n *AreaEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Area, total int64, err error)
- func (n *AreaEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Area, total int64, err error)
- func (n *AreaEndpoint) Update(ctx context.Context, params *m.Area) (result *m.Area, errs validator.ValidationErrorsTranslations, err error)
- type AuthEndpoint
- func (a *AuthEndpoint) AccessList(ctx context.Context, user *m.User, ...) (accessList *access_list.AccessList, err error)
- func (a *AuthEndpoint) Recovery(ctx context.Context)
- func (a *AuthEndpoint) Reset(ctx context.Context)
- func (a *AuthEndpoint) SignIn(ctx context.Context, email, password string, ip string) (user *m.User, accessToken string, err error)
- func (a *AuthEndpoint) SignOut(ctx context.Context, user *m.User) (err error)
- type BackupEndpoint
- type CommonEndpoint
- type DashboardCardEndpoint
- func (c *DashboardCardEndpoint) Add(ctx context.Context, card *m.DashboardCard) (result *m.DashboardCard, errs validator.ValidationErrorsTranslations, ...)
- func (c *DashboardCardEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (c *DashboardCardEndpoint) GetById(ctx context.Context, id int64) (card *m.DashboardCard, err error)
- func (c *DashboardCardEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardCard, total int64, err error)
- func (c *DashboardCardEndpoint) Import(ctx context.Context, card *m.DashboardCard) (result *m.DashboardCard, err error)
- func (i *DashboardCardEndpoint) Update(ctx context.Context, params *m.DashboardCard) (result *m.DashboardCard, errs validator.ValidationErrorsTranslations, ...)
- type DashboardCardItemEndpoint
- func (c *DashboardCardItemEndpoint) Add(ctx context.Context, card *m.DashboardCardItem) (result *m.DashboardCardItem, errs validator.ValidationErrorsTranslations, ...)
- func (c *DashboardCardItemEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (c *DashboardCardItemEndpoint) GetById(ctx context.Context, id int64) (card *m.DashboardCardItem, err error)
- func (c *DashboardCardItemEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardCardItem, total int64, err error)
- func (i *DashboardCardItemEndpoint) Update(ctx context.Context, params *m.DashboardCardItem) (result *m.DashboardCardItem, errs validator.ValidationErrorsTranslations, ...)
- type DashboardEndpoint
- func (d *DashboardEndpoint) Add(ctx context.Context, board *m.Dashboard) (result *m.Dashboard, errs validator.ValidationErrorsTranslations, err error)
- func (d *DashboardEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (d *DashboardEndpoint) GetById(ctx context.Context, id int64) (board *m.Dashboard, err error)
- func (d *DashboardEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.Dashboard, total int64, err error)
- func (d *DashboardEndpoint) Import(ctx context.Context, board *m.Dashboard) (result *m.Dashboard, err error)
- func (d *DashboardEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Dashboard, total int64, err error)
- func (i *DashboardEndpoint) Update(ctx context.Context, params *m.Dashboard) (result *m.Dashboard, errs validator.ValidationErrorsTranslations, err error)
- type DashboardTabEndpoint
- func (t *DashboardTabEndpoint) Add(ctx context.Context, tab *m.DashboardTab) (result *m.DashboardTab, errs validator.ValidationErrorsTranslations, err error)
- func (t *DashboardTabEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (t *DashboardTabEndpoint) GetById(ctx context.Context, id int64) (tab *m.DashboardTab, err error)
- func (t *DashboardTabEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardTab, total int64, err error)
- func (i *DashboardTabEndpoint) Update(ctx context.Context, params *m.DashboardTab) (result *m.DashboardTab, errs validator.ValidationErrorsTranslations, err error)
- type DeveloperToolsEndpoint
- func (d *DeveloperToolsEndpoint) EntitySetState(ctx context.Context, id common.EntityId, name string) (err error)
- func (d DeveloperToolsEndpoint) EventList(ctx context.Context) (events []bus.Stat, total int64, err error)
- func (d *DeveloperToolsEndpoint) ReloadEntity(ctx context.Context, id common.EntityId) (err error)
- func (d DeveloperToolsEndpoint) SetEntityState(ctx context.Context, entityId string, newState *string, ...) (errs validator.ValidationErrorsTranslations, err error)
- func (d DeveloperToolsEndpoint) StateList(ctx context.Context) (states []m.EntityShort, total int64, err error)
- func (d *DeveloperToolsEndpoint) TaskCallAction(ctx context.Context, id int64, name string) (err error)
- func (d *DeveloperToolsEndpoint) TaskCallTrigger(ctx context.Context, id int64, name string) (err error)
- type Endpoint
- type EntityEndpoint
- func (n *EntityEndpoint) Add(ctx context.Context, entity *m.Entity) (result *m.Entity, errs validator.ValidationErrorsTranslations, err error)
- func (n *EntityEndpoint) Delete(ctx context.Context, id common.EntityId) (err error)
- func (n *EntityEndpoint) GetById(ctx context.Context, id common.EntityId) (result *m.Entity, err error)
- func (n *EntityEndpoint) Import(ctx context.Context, entity *m.Entity) (err error)
- func (n *EntityEndpoint) List(ctx context.Context, pagination common.PageParams) (result []*m.Entity, total int64, err error)
- func (n *EntityEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Entity, total int64, err error)
- func (n *EntityEndpoint) Update(ctx context.Context, params *m.Entity) (result *m.Entity, errs validator.ValidationErrorsTranslations, err error)
- type EntityStorageEndpoint
- type ImageEndpoint
- func (i *ImageEndpoint) Add(ctx context.Context, params *m.Image) (image *m.Image, errs validator.ValidationErrorsTranslations, err error)
- func (i *ImageEndpoint) Delete(ctx context.Context, imageId int64) (errs validator.ValidationErrorsTranslations, err error)
- func (i *ImageEndpoint) GetById(ctx context.Context, imageId int64) (image *m.Image, errs validator.ValidationErrorsTranslations, err error)
- func (i *ImageEndpoint) GetFilterList(ctx context.Context) (filterList []*m.ImageFilterList, err error)
- func (i *ImageEndpoint) GetList(ctx context.Context, pagination common.PageParams) (items []*m.Image, total int64, err error)
- func (i *ImageEndpoint) GetListByDate(ctx context.Context, filter string) (images []*m.Image, err error)
- func (i *ImageEndpoint) Update(ctx context.Context, params *m.Image) (result *m.Image, errs validator.ValidationErrorsTranslations, err error)
- func (i *ImageEndpoint) Upload(ctx context.Context, files map[string][]*multipart.FileHeader) (fileList []*m.Image, errs []error)
- type InteractEndpoint
- type LogEndpoint
- func (l *LogEndpoint) Add(ctx context.Context, log *m.Log) (result *m.Log, errs validator.ValidationErrorsTranslations, err error)
- func (l *LogEndpoint) Delete(ctx context.Context, logId int64) (err error)
- func (l *LogEndpoint) GetById(ctx context.Context, id int64) (log *m.Log, err error)
- func (l *LogEndpoint) GetList(ctx context.Context, pagination common.PageParams, ...) (list []*m.Log, total int64, err error)
- func (l *LogEndpoint) Search(ctx context.Context, query string, limit, offset int) (list []*m.Log, total int64, err error)
- type MessageDeliveryEndpoint
- type MetricEndpoint
- type MqttEndpoint
- func (m *MqttEndpoint) CloseClient(clientId string) (err error)
- func (m *MqttEndpoint) GetClient(clientId string) (client *admin.ClientInfo, err error)
- func (m *MqttEndpoint) GetClients(limit, offset uint) (list []*admin.ClientInfo, total uint32, err error)
- func (m *MqttEndpoint) GetSession(clientId string) (session *admin.SessionInfo, err error)
- func (m *MqttEndpoint) GetSessions(limit, offset uint) (list []*admin.SessionInfo, total int, err error)
- func (m *MqttEndpoint) GetSubscriptions(clientId string, limit, offset uint) (list []*admin.SubscriptionInfo, total int, err error)
- func (m *MqttEndpoint) Publish(topic string, qos int, payload []byte, retain bool) (err error)
- func (m *MqttEndpoint) SearchTopic(query string, limit, offset int) (result []*admin.SubscriptionInfo, total int64, err error)
- func (m *MqttEndpoint) Subscribe(clientId, topic string, qos int) (err error)
- func (m *MqttEndpoint) Unsubscribe(clientId, topic string) (err error)
- type NotifyEndpoint
- type PluginActorEndpoint
- type PluginEndpoint
- func (p *PluginEndpoint) Disable(ctx context.Context, pluginName string) (err error)
- func (p *PluginEndpoint) Enable(ctx context.Context, pluginName string) (err error)
- func (p *PluginEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []m.Plugin, total int64, err error)
- func (p *PluginEndpoint) GetOptions(ctx context.Context, pluginName string) (options m.PluginOptions, err error)
- func (n *PluginEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []m.Plugin, total int64, err error)
- type RoleEndpoint
- func (n *RoleEndpoint) Add(ctx context.Context, params *m.Role) (result *m.Role, errs validator.ValidationErrorsTranslations, err error)
- func (n *RoleEndpoint) Delete(ctx context.Context, name string) (err error)
- func (n *RoleEndpoint) GetAccessList(ctx context.Context, roleName string, ...) (accessList access_list.AccessList, err error)
- func (n *RoleEndpoint) GetByName(ctx context.Context, name string) (result *m.Role, err error)
- func (n *RoleEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Role, total int64, err error)
- func (n *RoleEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Role, total int64, err error)
- func (n *RoleEndpoint) Update(ctx context.Context, params *m.Role) (result *m.Role, errs validator.ValidationErrorsTranslations, err error)
- func (n *RoleEndpoint) UpdateAccessList(ctx context.Context, roleName string, accessListDif map[string]map[string]bool) (err error)
- type ScriptEndpoint
- func (n *ScriptEndpoint) Add(ctx context.Context, params *m.Script) (result *m.Script, errs validator.ValidationErrorsTranslations, err error)
- func (n *ScriptEndpoint) Copy(ctx context.Context, scriptId int64) (script *m.Script, err error)
- func (n *ScriptEndpoint) DeleteScriptById(ctx context.Context, scriptId int64) (err error)
- func (n *ScriptEndpoint) Execute(ctx context.Context, scriptId int64) (result string, err error)
- func (n *ScriptEndpoint) ExecuteSource(ctx context.Context, script *m.Script) (result string, err error)
- func (n *ScriptEndpoint) GetById(ctx context.Context, scriptId int64) (result *m.Script, err error)
- func (n *ScriptEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Script, total int64, err error)
- func (n *ScriptEndpoint) Search(ctx context.Context, query string, limit, offset int64) (devices []*m.Script, total int64, err error)
- func (n *ScriptEndpoint) Update(ctx context.Context, params *m.Script) (result *m.Script, errs validator.ValidationErrorsTranslations, err error)
- type TaskEndpoint
- func (n *TaskEndpoint) Add(ctx context.Context, task *m.Task) (result *m.Task, errs validator.ValidationErrorsTranslations, err error)
- func (n *TaskEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (n *TaskEndpoint) Disable(ctx context.Context, id int64) (err error)
- func (n *TaskEndpoint) Enable(ctx context.Context, id int64) (err error)
- func (n *TaskEndpoint) GetById(ctx context.Context, id int64) (task *m.Task, errs validator.ValidationErrorsTranslations, err error)
- func (n *TaskEndpoint) List(ctx context.Context, pagination common.PageParams) (list []*m.Task, total int64, errs validator.ValidationErrorsTranslations, ...)
- func (n *TaskEndpoint) Update(ctx context.Context, task *m.Task) (result *m.Task, errs validator.ValidationErrorsTranslations, err error)
- type TemplateEndpoint
- func (t *TemplateEndpoint) Delete(name string) (err error)
- func (t *TemplateEndpoint) GetByName(name string) (result *m.Template, err error)
- func (t *TemplateEndpoint) GetItemByName(name string) (result *m.Template, err error)
- func (t *TemplateEndpoint) GetItemsSortedList() (count int64, items []string, err error)
- func (t *TemplateEndpoint) GetItemsTree() (tree []*m.TemplateTree, err error)
- func (t *TemplateEndpoint) GetList() (count int64, templates []*m.Template, err error)
- func (t *TemplateEndpoint) Preview(template *m.TemplateContent) (data string, err error)
- func (t *TemplateEndpoint) Search(query string, limit, offset int) (result []*m.Template, total int64, err error)
- func (t *TemplateEndpoint) UpdateItemsTree(tree []*m.TemplateTree) (err error)
- func (t *TemplateEndpoint) UpdateOrCreate(params *m.Template) (errs validator.ValidationErrorsTranslations, err error)
- func (t *TemplateEndpoint) UpdateStatus(params *m.Template) (errs validator.ValidationErrorsTranslations, err error)
- type UserEndpoint
- func (n *UserEndpoint) Add(ctx context.Context, params *m.User, currentUser *m.User) (result *m.User, errs validator.ValidationErrorsTranslations, err error)
- func (n *UserEndpoint) Delete(ctx context.Context, userId int64) (err error)
- func (n *UserEndpoint) GetById(ctx context.Context, userId int64) (result *m.User, err error)
- func (n *UserEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.User, total int64, err error)
- func (n *UserEndpoint) Update(ctx context.Context, params *m.User) (result *m.User, errs validator.ValidationErrorsTranslations, err error)
- func (n *UserEndpoint) UpdateStatus(ctx context.Context, userId int64, newStatus string) (err error)
- type VariableEndpoint
- func (v *VariableEndpoint) Add(ctx context.Context, variable m.Variable) (errs validator.ValidationErrorsTranslations, err error)
- func (v *VariableEndpoint) Delete(ctx context.Context, name string) (err error)
- func (v *VariableEndpoint) GetById(ctx context.Context, name string) (variable m.Variable, err error)
- func (v *VariableEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []m.Variable, total int64, err error)
- func (v *VariableEndpoint) Update(ctx context.Context, variable m.Variable) (errs validator.ValidationErrorsTranslations, err error)
- type VersionEndpoint
- type Zigbee2mqttEndpoint
- func (n *Zigbee2mqttEndpoint) AddBridge(ctx context.Context, params *m.Zigbee2mqtt) (result *m.Zigbee2mqtt, errs validator.ValidationErrorsTranslations, err error)
- func (n *Zigbee2mqttEndpoint) Delete(ctx context.Context, id int64) (err error)
- func (n *Zigbee2mqttEndpoint) DeviceBan(ctx context.Context, id int64, friendlyName string) (err error)
- func (n *Zigbee2mqttEndpoint) DeviceList(ctx context.Context, bridgeId int64, pagination common.PageParams) (result []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttEndpoint) DeviceRename(ctx context.Context, friendlyName, name string) (err error)
- func (n *Zigbee2mqttEndpoint) DeviceWhitelist(ctx context.Context, id int64, friendlyName string) (err error)
- func (n *Zigbee2mqttEndpoint) GetBridgeById(ctx context.Context, id int64) (result *zigbee2mqtt.Zigbee2mqttBridge, err error)
- func (n *Zigbee2mqttEndpoint) GetBridgeList(ctx context.Context, pagination common.PageParams) (result []*zigbee2mqtt.Zigbee2mqttBridge, total int64, err error)
- func (n *Zigbee2mqttEndpoint) Networkmap(ctx context.Context, id int64) (networkmap string, err error)
- func (n *Zigbee2mqttEndpoint) ResetBridge(ctx context.Context, id int64) (err error)
- func (n *Zigbee2mqttEndpoint) SearchDevice(ctx context.Context, search common.SearchParams) (result []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttEndpoint) UpdateBridge(ctx context.Context, params *m.Zigbee2mqtt) (bridge *m.Zigbee2mqtt, errs validator.ValidationErrorsTranslations, err error)
- func (n *Zigbee2mqttEndpoint) UpdateNetworkmap(ctx context.Context, id int64) (err error)
Constants ¶
const (
// AdminId ...
AdminId = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlexaSkillEndpoint ¶ added in v0.3.0
type AlexaSkillEndpoint struct {
*CommonEndpoint
}
AlexaSkillEndpoint ...
func NewAlexaSkillEndpoint ¶ added in v0.3.0
func NewAlexaSkillEndpoint(common *CommonEndpoint) *AlexaSkillEndpoint
NewAlexaSkillEndpoint ...
func (*AlexaSkillEndpoint) Add ¶ added in v0.3.0
func (n *AlexaSkillEndpoint) Add(params *m.AlexaSkill) (result *m.AlexaSkill, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*AlexaSkillEndpoint) Delete ¶ added in v0.3.0
func (n *AlexaSkillEndpoint) Delete(skillId int64) (err error)
Delete ...
func (*AlexaSkillEndpoint) GetById ¶ added in v0.3.0
func (n *AlexaSkillEndpoint) GetById(appId int64) (result *m.AlexaSkill, err error)
GetById ...
func (*AlexaSkillEndpoint) GetList ¶ added in v0.3.0
func (n *AlexaSkillEndpoint) GetList(limit, offset int64, order, sortBy string) (result []*m.AlexaSkill, total int64, err error)
GetList ...
func (*AlexaSkillEndpoint) Update ¶ added in v0.3.0
func (n *AlexaSkillEndpoint) Update(params *m.AlexaSkill) (skill *m.AlexaSkill, errs validator.ValidationErrorsTranslations, err error)
Update ...
type AreaEndpoint ¶ added in v0.5.2
type AreaEndpoint struct {
*CommonEndpoint
}
AreaEndpoint ...
func NewAreaEndpoint ¶ added in v0.5.2
func NewAreaEndpoint(common *CommonEndpoint) *AreaEndpoint
NewAreaEndpoint ...
func (*AreaEndpoint) Add ¶ added in v0.5.2
func (n *AreaEndpoint) Add(ctx context.Context, params *m.Area) (result *m.Area, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*AreaEndpoint) Delete ¶ added in v0.5.2
func (n *AreaEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*AreaEndpoint) GetList ¶ added in v0.5.2
func (n *AreaEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Area, total int64, err error)
GetList ...
type AuthEndpoint ¶
type AuthEndpoint struct {
*CommonEndpoint
}
AuthEndpoint ...
func NewAuthEndpoint ¶
func NewAuthEndpoint(common *CommonEndpoint) *AuthEndpoint
NewAuthEndpoint ...
func (*AuthEndpoint) AccessList ¶
func (a *AuthEndpoint) AccessList(ctx context.Context, user *m.User, accessListService access_list.AccessListService) (accessList *access_list.AccessList, err error)
AccessList ...
type BackupEndpoint ¶ added in v0.7.1
type BackupEndpoint struct { *CommonEndpoint // contains filtered or unexported fields }
BackupEndpoint ...
func NewBackupEndpoint ¶ added in v0.7.1
func NewBackupEndpoint(common *CommonEndpoint, backup *backup.Backup) *BackupEndpoint
NewBackupEndpoint ...
func (*BackupEndpoint) GetList ¶ added in v0.7.1
func (b *BackupEndpoint) GetList(ctx context.Context) (list []string)
GetList ...
type CommonEndpoint ¶
type CommonEndpoint struct {
// contains filtered or unexported fields
}
CommonEndpoint ...
func NewCommonEndpoint ¶
func NewCommonEndpoint(adaptors *adaptors.Adaptors, accessList access_list.AccessListService, scriptService scripts.ScriptService, zigbee2mqtt zigbee2mqtt.Zigbee2mqtt, eventBus bus.Bus, pluginManager common.PluginManager, entityManager entity_manager.EntityManager, mqtt mqtt.MqttServ, jwtManager jwt_manager.JwtManager, validation *validation.Validate, ) *CommonEndpoint
NewCommonEndpoint ...
type DashboardCardEndpoint ¶ added in v0.6.0
type DashboardCardEndpoint struct {
*CommonEndpoint
}
DashboardCardEndpoint ...
func NewDashboardCardEndpoint ¶ added in v0.6.0
func NewDashboardCardEndpoint(common *CommonEndpoint) *DashboardCardEndpoint
NewDashboardCardEndpoint ...
func (*DashboardCardEndpoint) Add ¶ added in v0.6.0
func (c *DashboardCardEndpoint) Add(ctx context.Context, card *m.DashboardCard) (result *m.DashboardCard, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*DashboardCardEndpoint) Delete ¶ added in v0.6.0
func (c *DashboardCardEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*DashboardCardEndpoint) GetById ¶ added in v0.6.0
func (c *DashboardCardEndpoint) GetById(ctx context.Context, id int64) (card *m.DashboardCard, err error)
GetById ...
func (*DashboardCardEndpoint) GetList ¶ added in v0.6.0
func (c *DashboardCardEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardCard, total int64, err error)
GetList ...
func (*DashboardCardEndpoint) Import ¶ added in v0.6.0
func (c *DashboardCardEndpoint) Import(ctx context.Context, card *m.DashboardCard) (result *m.DashboardCard, err error)
Import ...
func (*DashboardCardEndpoint) Update ¶ added in v0.6.0
func (i *DashboardCardEndpoint) Update(ctx context.Context, params *m.DashboardCard) (result *m.DashboardCard, errs validator.ValidationErrorsTranslations, err error)
Update ...
type DashboardCardItemEndpoint ¶ added in v0.6.0
type DashboardCardItemEndpoint struct {
*CommonEndpoint
}
DashboardCardItemEndpoint ...
func NewDashboardCardItemEndpoint ¶ added in v0.6.0
func NewDashboardCardItemEndpoint(common *CommonEndpoint) *DashboardCardItemEndpoint
NewDashboardCardItemEndpoint ...
func (*DashboardCardItemEndpoint) Add ¶ added in v0.6.0
func (c *DashboardCardItemEndpoint) Add(ctx context.Context, card *m.DashboardCardItem) (result *m.DashboardCardItem, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*DashboardCardItemEndpoint) Delete ¶ added in v0.6.0
func (c *DashboardCardItemEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*DashboardCardItemEndpoint) GetById ¶ added in v0.6.0
func (c *DashboardCardItemEndpoint) GetById(ctx context.Context, id int64) (card *m.DashboardCardItem, err error)
GetById ...
func (*DashboardCardItemEndpoint) GetList ¶ added in v0.6.0
func (c *DashboardCardItemEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardCardItem, total int64, err error)
GetList ...
func (*DashboardCardItemEndpoint) Update ¶ added in v0.6.0
func (i *DashboardCardItemEndpoint) Update(ctx context.Context, params *m.DashboardCardItem) (result *m.DashboardCardItem, errs validator.ValidationErrorsTranslations, err error)
Update ...
type DashboardEndpoint ¶ added in v0.6.0
type DashboardEndpoint struct {
*CommonEndpoint
}
DashboardEndpoint ...
func NewDashboardEndpoint ¶ added in v0.6.0
func NewDashboardEndpoint(common *CommonEndpoint) *DashboardEndpoint
NewDashboardEndpoint ...
func (*DashboardEndpoint) Add ¶ added in v0.6.0
func (d *DashboardEndpoint) Add(ctx context.Context, board *m.Dashboard) (result *m.Dashboard, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*DashboardEndpoint) Delete ¶ added in v0.6.0
func (d *DashboardEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*DashboardEndpoint) GetList ¶ added in v0.6.0
func (d *DashboardEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.Dashboard, total int64, err error)
GetList ...
func (*DashboardEndpoint) Import ¶ added in v0.6.0
func (d *DashboardEndpoint) Import(ctx context.Context, board *m.Dashboard) (result *m.Dashboard, err error)
Import ...
type DashboardTabEndpoint ¶ added in v0.6.0
type DashboardTabEndpoint struct {
*CommonEndpoint
}
DashboardTabEndpoint ...
func NewDashboardTabEndpoint ¶ added in v0.6.0
func NewDashboardTabEndpoint(common *CommonEndpoint) *DashboardTabEndpoint
NewDashboardTabEndpoint ...
func (*DashboardTabEndpoint) Add ¶ added in v0.6.0
func (t *DashboardTabEndpoint) Add(ctx context.Context, tab *m.DashboardTab) (result *m.DashboardTab, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*DashboardTabEndpoint) Delete ¶ added in v0.6.0
func (t *DashboardTabEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*DashboardTabEndpoint) GetById ¶ added in v0.6.0
func (t *DashboardTabEndpoint) GetById(ctx context.Context, id int64) (tab *m.DashboardTab, err error)
GetById ...
func (*DashboardTabEndpoint) GetList ¶ added in v0.6.0
func (t *DashboardTabEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []*m.DashboardTab, total int64, err error)
GetList ...
func (*DashboardTabEndpoint) Update ¶ added in v0.6.0
func (i *DashboardTabEndpoint) Update(ctx context.Context, params *m.DashboardTab) (result *m.DashboardTab, errs validator.ValidationErrorsTranslations, err error)
Update ...
type DeveloperToolsEndpoint ¶ added in v0.5.0
type DeveloperToolsEndpoint struct {
*CommonEndpoint
}
DeveloperToolsEndpoint ...
func NewDeveloperToolsEndpoint ¶ added in v0.5.0
func NewDeveloperToolsEndpoint(common *CommonEndpoint) *DeveloperToolsEndpoint
NewDeveloperToolsEndpoint ...
func (*DeveloperToolsEndpoint) EntitySetState ¶ added in v0.5.3
func (d *DeveloperToolsEndpoint) EntitySetState(ctx context.Context, id common.EntityId, name string) (err error)
EntitySetState ...
func (DeveloperToolsEndpoint) EventList ¶ added in v0.5.0
func (d DeveloperToolsEndpoint) EventList(ctx context.Context) (events []bus.Stat, total int64, err error)
EventList ...
func (*DeveloperToolsEndpoint) ReloadEntity ¶ added in v0.5.3
ReloadEntity ...
func (DeveloperToolsEndpoint) SetEntityState ¶ added in v0.5.3
func (d DeveloperToolsEndpoint) SetEntityState(ctx context.Context, entityId string, newState *string, attrs map[string]interface{}) (errs validator.ValidationErrorsTranslations, err error)
SetEntityState ...
func (DeveloperToolsEndpoint) StateList ¶ added in v0.5.0
func (d DeveloperToolsEndpoint) StateList(ctx context.Context) (states []m.EntityShort, total int64, err error)
StateList ...
func (*DeveloperToolsEndpoint) TaskCallAction ¶ added in v0.5.3
func (d *DeveloperToolsEndpoint) TaskCallAction(ctx context.Context, id int64, name string) (err error)
TaskCallAction ...
func (*DeveloperToolsEndpoint) TaskCallTrigger ¶ added in v0.5.3
func (d *DeveloperToolsEndpoint) TaskCallTrigger(ctx context.Context, id int64, name string) (err error)
TaskCallTrigger ...
type Endpoint ¶
type Endpoint struct { AlexaSkill *AlexaSkillEndpoint Auth *AuthEndpoint Image *ImageEndpoint Log *LogEndpoint Role *RoleEndpoint Script *ScriptEndpoint User *UserEndpoint Template *TemplateEndpoint Notify *NotifyEndpoint MessageDelivery *MessageDeliveryEndpoint Version *VersionEndpoint Zigbee2mqtt *Zigbee2mqttEndpoint Entity *EntityEndpoint DeveloperTools *DeveloperToolsEndpoint Mqtt *MqttEndpoint Plugin *PluginEndpoint PluginActor *PluginActorEndpoint Task *TaskEndpoint Area *AreaEndpoint Interact *InteractEndpoint Dashboard *DashboardEndpoint DashboardTab *DashboardTabEndpoint DashboardCard *DashboardCardEndpoint DashboardCardItem *DashboardCardItemEndpoint Variable *VariableEndpoint EntityStorage *EntityStorageEndpoint Metric *MetricEndpoint Backup *BackupEndpoint }
Endpoint ...
func NewEndpoint ¶
func NewEndpoint(adaptors *adaptors.Adaptors, scriptService scripts.ScriptService, accessList access_list.AccessListService, zigbee2mqtt zigbee2mqtt.Zigbee2mqtt, entityManager entity_manager.EntityManager, eventBus bus.Bus, pluginManager common.PluginManager, mqtt mqtt.MqttServ, jwtManager jwt_manager.JwtManager, validation *validation.Validate, backup *backup.Backup) *Endpoint
NewEndpoint ...
type EntityEndpoint ¶ added in v0.5.0
type EntityEndpoint struct {
*CommonEndpoint
}
EntityEndpoint ...
func NewEntityEndpoint ¶ added in v0.5.0
func NewEntityEndpoint(common *CommonEndpoint) *EntityEndpoint
NewEntityEndpoint ...
func (*EntityEndpoint) Add ¶ added in v0.5.0
func (n *EntityEndpoint) Add(ctx context.Context, entity *m.Entity) (result *m.Entity, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*EntityEndpoint) GetById ¶ added in v0.5.0
func (n *EntityEndpoint) GetById(ctx context.Context, id common.EntityId) (result *m.Entity, err error)
GetById ...
func (*EntityEndpoint) List ¶ added in v0.5.0
func (n *EntityEndpoint) List(ctx context.Context, pagination common.PageParams) (result []*m.Entity, total int64, err error)
List ...
type EntityStorageEndpoint ¶ added in v0.6.0
type EntityStorageEndpoint struct {
*CommonEndpoint
}
EntityStorageEndpoint ...
func NewEntityStorageEndpoint ¶ added in v0.6.0
func NewEntityStorageEndpoint(common *CommonEndpoint) *EntityStorageEndpoint
NewEntityStorageEndpoint ...
func (*EntityStorageEndpoint) GetList ¶ added in v0.6.0
func (i *EntityStorageEndpoint) GetList(ctx context.Context, entityId common.EntityId, pagination common.PageParams, _startDate, _endDate *string) (items []*m.EntityStorage, total int64, err error)
GetList ...
type ImageEndpoint ¶
type ImageEndpoint struct {
*CommonEndpoint
}
ImageEndpoint ...
func NewImageEndpoint ¶
func NewImageEndpoint(common *CommonEndpoint) *ImageEndpoint
NewImageEndpoint ...
func (*ImageEndpoint) Add ¶
func (i *ImageEndpoint) Add(ctx context.Context, params *m.Image) (image *m.Image, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*ImageEndpoint) Delete ¶
func (i *ImageEndpoint) Delete(ctx context.Context, imageId int64) (errs validator.ValidationErrorsTranslations, err error)
Delete ...
func (*ImageEndpoint) GetById ¶
func (i *ImageEndpoint) GetById(ctx context.Context, imageId int64) (image *m.Image, errs validator.ValidationErrorsTranslations, err error)
GetById ...
func (*ImageEndpoint) GetFilterList ¶ added in v0.5.2
func (i *ImageEndpoint) GetFilterList(ctx context.Context) (filterList []*m.ImageFilterList, err error)
GetFilterList ...
func (*ImageEndpoint) GetList ¶
func (i *ImageEndpoint) GetList(ctx context.Context, pagination common.PageParams) (items []*m.Image, total int64, err error)
GetList ...
func (*ImageEndpoint) GetListByDate ¶ added in v0.5.3
func (i *ImageEndpoint) GetListByDate(ctx context.Context, filter string) (images []*m.Image, err error)
GetListByDate ...
type InteractEndpoint ¶ added in v0.5.3
type InteractEndpoint struct {
*CommonEndpoint
}
InteractEndpoint ...
func NewInteractEndpoint ¶ added in v0.5.3
func NewInteractEndpoint(common *CommonEndpoint) *InteractEndpoint
NewInteractEndpoint ...
func (InteractEndpoint) EntityCallAction ¶ added in v0.5.3
func (d InteractEndpoint) EntityCallAction(ctx context.Context, entityId string, action string, args map[string]interface{}) (errs validator.ValidationErrorsTranslations, err error)
EntityCallAction ...
type LogEndpoint ¶
type LogEndpoint struct {
*CommonEndpoint
}
LogEndpoint ...
func (*LogEndpoint) Add ¶
func (l *LogEndpoint) Add(ctx context.Context, log *m.Log) (result *m.Log, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*LogEndpoint) Delete ¶
func (l *LogEndpoint) Delete(ctx context.Context, logId int64) (err error)
Delete ...
type MessageDeliveryEndpoint ¶ added in v0.0.17
type MessageDeliveryEndpoint struct {
*CommonEndpoint
}
MessageDeliveryEndpoint ...
func NewMessageDeliveryEndpoint ¶ added in v0.0.17
func NewMessageDeliveryEndpoint(common *CommonEndpoint) *MessageDeliveryEndpoint
NewMessageDeliveryEndpoint ...
func (*MessageDeliveryEndpoint) Delete ¶ added in v0.0.17
func (n *MessageDeliveryEndpoint) Delete(id int64) (err error)
Delete ...
func (*MessageDeliveryEndpoint) GetList ¶ added in v0.0.17
func (n *MessageDeliveryEndpoint) GetList(limit, offset int64, order, sortBy string) (result []m.MessageDelivery, total int64, err error)
GetList ...
type MetricEndpoint ¶ added in v0.7.0
type MetricEndpoint struct {
*CommonEndpoint
}
MetricEndpoint ...
func NewMetricEndpoint ¶ added in v0.7.0
func NewMetricEndpoint(common *CommonEndpoint) *MetricEndpoint
NewMetricEndpoint ...
type MqttEndpoint ¶ added in v0.0.20
type MqttEndpoint struct {
*CommonEndpoint
}
MqttEndpoint ...
func NewMqttEndpoint ¶ added in v0.0.20
func NewMqttEndpoint(common *CommonEndpoint) *MqttEndpoint
NewMqttEndpoint ...
func (*MqttEndpoint) CloseClient ¶ added in v0.0.20
func (m *MqttEndpoint) CloseClient(clientId string) (err error)
CloseClient ...
func (*MqttEndpoint) GetClient ¶ added in v0.0.20
func (m *MqttEndpoint) GetClient(clientId string) (client *admin.ClientInfo, err error)
GetClient ...
func (*MqttEndpoint) GetClients ¶ added in v0.0.20
func (m *MqttEndpoint) GetClients(limit, offset uint) (list []*admin.ClientInfo, total uint32, err error)
GetClients ...
func (*MqttEndpoint) GetSession ¶ added in v0.0.20
func (m *MqttEndpoint) GetSession(clientId string) (session *admin.SessionInfo, err error)
GetSession ...
func (*MqttEndpoint) GetSessions ¶ added in v0.0.20
func (m *MqttEndpoint) GetSessions(limit, offset uint) (list []*admin.SessionInfo, total int, err error)
GetSessions ...
func (*MqttEndpoint) GetSubscriptions ¶ added in v0.0.20
func (m *MqttEndpoint) GetSubscriptions(clientId string, limit, offset uint) (list []*admin.SubscriptionInfo, total int, err error)
GetSubscriptions ...
func (*MqttEndpoint) SearchTopic ¶ added in v0.0.21
func (m *MqttEndpoint) SearchTopic(query string, limit, offset int) (result []*admin.SubscriptionInfo, total int64, err error)
SearchTopic ...
func (*MqttEndpoint) Subscribe ¶ added in v0.0.20
func (m *MqttEndpoint) Subscribe(clientId, topic string, qos int) (err error)
Subscribe ...
func (*MqttEndpoint) Unsubscribe ¶ added in v0.0.20
func (m *MqttEndpoint) Unsubscribe(clientId, topic string) (err error)
Unsubscribe ...
type NotifyEndpoint ¶ added in v0.0.17
type NotifyEndpoint struct {
*CommonEndpoint
}
NotifyEndpoint ...
func NewNotifyEndpoint ¶ added in v0.0.17
func NewNotifyEndpoint(common *CommonEndpoint) *NotifyEndpoint
NewNotifyEndpoint ...
func (*NotifyEndpoint) Repeat ¶ added in v0.0.17
func (n *NotifyEndpoint) Repeat(id int64) (err error)
Repeat ...
func (*NotifyEndpoint) Send ¶ added in v0.0.17
func (n *NotifyEndpoint) Send(params *m.NewNotifrMessage) (err error)
Send ...
type PluginActorEndpoint ¶ added in v0.5.0
type PluginActorEndpoint struct {
*CommonEndpoint
}
PluginActorEndpoint ...
func NewPluginActorEndpoint ¶ added in v0.5.0
func NewPluginActorEndpoint(common *CommonEndpoint) *PluginActorEndpoint
NewPluginActorEndpoint ...
func (*PluginActorEndpoint) Delete ¶ added in v0.5.0
func (p *PluginActorEndpoint) Delete()
Delete ...
func (*PluginActorEndpoint) GetByName ¶ added in v0.5.0
func (p *PluginActorEndpoint) GetByName(name string)
GetByName ...
func (*PluginActorEndpoint) Search ¶ added in v0.5.0
func (p *PluginActorEndpoint) Search(query string, limit, offset int)
Search ...
func (*PluginActorEndpoint) Update ¶ added in v0.5.0
func (p *PluginActorEndpoint) Update()
Update ...
type PluginEndpoint ¶ added in v0.5.0
type PluginEndpoint struct {
*CommonEndpoint
}
PluginEndpoint ...
func NewPluginEndpoint ¶ added in v0.5.0
func NewPluginEndpoint(common *CommonEndpoint) *PluginEndpoint
NewPluginEndpoint ...
func (*PluginEndpoint) Disable ¶ added in v0.5.0
func (p *PluginEndpoint) Disable(ctx context.Context, pluginName string) (err error)
Disable ...
func (*PluginEndpoint) Enable ¶ added in v0.5.1
func (p *PluginEndpoint) Enable(ctx context.Context, pluginName string) (err error)
Enable ...
func (*PluginEndpoint) GetList ¶ added in v0.5.0
func (p *PluginEndpoint) GetList(ctx context.Context, pagination common.PageParams) (list []m.Plugin, total int64, err error)
GetList ...
func (*PluginEndpoint) GetOptions ¶ added in v0.5.0
func (p *PluginEndpoint) GetOptions(ctx context.Context, pluginName string) (options m.PluginOptions, err error)
GetOptions ...
type RoleEndpoint ¶
type RoleEndpoint struct {
*CommonEndpoint
}
RoleEndpoint ...
func NewRoleEndpoint ¶
func NewRoleEndpoint(common *CommonEndpoint) *RoleEndpoint
NewRoleEndpoint ...
func (*RoleEndpoint) Add ¶
func (n *RoleEndpoint) Add(ctx context.Context, params *m.Role) (result *m.Role, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*RoleEndpoint) Delete ¶
func (n *RoleEndpoint) Delete(ctx context.Context, name string) (err error)
Delete ...
func (*RoleEndpoint) GetAccessList ¶
func (n *RoleEndpoint) GetAccessList(ctx context.Context, roleName string, accessListService access_list.AccessListService) (accessList access_list.AccessList, err error)
GetAccessList ...
func (*RoleEndpoint) GetList ¶
func (n *RoleEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Role, total int64, err error)
GetList ...
func (*RoleEndpoint) Search ¶
func (n *RoleEndpoint) Search(ctx context.Context, query string, limit, offset int64) (result []*m.Role, total int64, err error)
Search ...
func (*RoleEndpoint) Update ¶
func (n *RoleEndpoint) Update(ctx context.Context, params *m.Role) (result *m.Role, errs validator.ValidationErrorsTranslations, err error)
Update ...
func (*RoleEndpoint) UpdateAccessList ¶
func (n *RoleEndpoint) UpdateAccessList(ctx context.Context, roleName string, accessListDif map[string]map[string]bool) (err error)
UpdateAccessList ...
type ScriptEndpoint ¶
type ScriptEndpoint struct {
*CommonEndpoint
}
ScriptEndpoint ...
func NewScriptEndpoint ¶
func NewScriptEndpoint(common *CommonEndpoint) *ScriptEndpoint
NewScriptEndpoint ...
func (*ScriptEndpoint) Add ¶
func (n *ScriptEndpoint) Add(ctx context.Context, params *m.Script) (result *m.Script, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*ScriptEndpoint) DeleteScriptById ¶
func (n *ScriptEndpoint) DeleteScriptById(ctx context.Context, scriptId int64) (err error)
DeleteScriptById ...
func (*ScriptEndpoint) ExecuteSource ¶
func (n *ScriptEndpoint) ExecuteSource(ctx context.Context, script *m.Script) (result string, err error)
ExecuteSource ...
func (*ScriptEndpoint) GetList ¶
func (n *ScriptEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.Script, total int64, err error)
GetList ...
type TaskEndpoint ¶ added in v0.5.1
type TaskEndpoint struct {
*CommonEndpoint
}
TaskEndpoint ...
func NewTaskEndpoint ¶ added in v0.5.1
func NewTaskEndpoint(common *CommonEndpoint) *TaskEndpoint
NewTaskEndpoint ...
func (*TaskEndpoint) Add ¶ added in v0.5.1
func (n *TaskEndpoint) Add(ctx context.Context, task *m.Task) (result *m.Task, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*TaskEndpoint) Delete ¶ added in v0.5.1
func (n *TaskEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*TaskEndpoint) Disable ¶ added in v0.5.3
func (n *TaskEndpoint) Disable(ctx context.Context, id int64) (err error)
Disable ...
func (*TaskEndpoint) Enable ¶ added in v0.5.3
func (n *TaskEndpoint) Enable(ctx context.Context, id int64) (err error)
Enable ...
func (*TaskEndpoint) GetById ¶ added in v0.5.2
func (n *TaskEndpoint) GetById(ctx context.Context, id int64) (task *m.Task, errs validator.ValidationErrorsTranslations, err error)
GetById ...
type TemplateEndpoint ¶ added in v0.0.17
type TemplateEndpoint struct {
*CommonEndpoint
}
TemplateEndpoint ...
func NewTemplateEndpoint ¶ added in v0.0.17
func NewTemplateEndpoint(common *CommonEndpoint) *TemplateEndpoint
NewTemplateEndpoint ...
func (*TemplateEndpoint) Delete ¶ added in v0.0.17
func (t *TemplateEndpoint) Delete(name string) (err error)
Delete ...
func (*TemplateEndpoint) GetByName ¶ added in v0.0.17
func (t *TemplateEndpoint) GetByName(name string) (result *m.Template, err error)
GetByName ...
func (*TemplateEndpoint) GetItemByName ¶ added in v0.0.17
func (t *TemplateEndpoint) GetItemByName(name string) (result *m.Template, err error)
GetItemByName ...
func (*TemplateEndpoint) GetItemsSortedList ¶ added in v0.0.17
func (t *TemplateEndpoint) GetItemsSortedList() (count int64, items []string, err error)
GetItemsSortedList ...
func (*TemplateEndpoint) GetItemsTree ¶ added in v0.0.17
func (t *TemplateEndpoint) GetItemsTree() (tree []*m.TemplateTree, err error)
GetItemsTree ...
func (*TemplateEndpoint) GetList ¶ added in v0.0.17
func (t *TemplateEndpoint) GetList() (count int64, templates []*m.Template, err error)
GetList ...
func (*TemplateEndpoint) Preview ¶ added in v0.0.17
func (t *TemplateEndpoint) Preview(template *m.TemplateContent) (data string, err error)
Preview ...
func (*TemplateEndpoint) Search ¶ added in v0.0.17
func (t *TemplateEndpoint) Search(query string, limit, offset int) (result []*m.Template, total int64, err error)
Search ...
func (*TemplateEndpoint) UpdateItemsTree ¶ added in v0.0.17
func (t *TemplateEndpoint) UpdateItemsTree(tree []*m.TemplateTree) (err error)
UpdateItemsTree ...
func (*TemplateEndpoint) UpdateOrCreate ¶ added in v0.0.17
func (t *TemplateEndpoint) UpdateOrCreate(params *m.Template) (errs validator.ValidationErrorsTranslations, err error)
UpdateOrCreate ...
func (*TemplateEndpoint) UpdateStatus ¶ added in v0.0.17
func (t *TemplateEndpoint) UpdateStatus(params *m.Template) (errs validator.ValidationErrorsTranslations, err error)
UpdateStatus ...
type UserEndpoint ¶
type UserEndpoint struct {
*CommonEndpoint
}
UserEndpoint ...
func NewUserEndpoint ¶
func NewUserEndpoint(common *CommonEndpoint) *UserEndpoint
NewUserEndpoint ...
func (*UserEndpoint) Add ¶
func (n *UserEndpoint) Add(ctx context.Context, params *m.User, currentUser *m.User) (result *m.User, errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*UserEndpoint) Delete ¶
func (n *UserEndpoint) Delete(ctx context.Context, userId int64) (err error)
Delete ...
func (*UserEndpoint) GetList ¶
func (n *UserEndpoint) GetList(ctx context.Context, pagination common.PageParams) (result []*m.User, total int64, err error)
GetList ...
func (*UserEndpoint) Update ¶
func (n *UserEndpoint) Update(ctx context.Context, params *m.User) (result *m.User, errs validator.ValidationErrorsTranslations, err error)
Update ...
func (*UserEndpoint) UpdateStatus ¶
func (n *UserEndpoint) UpdateStatus(ctx context.Context, userId int64, newStatus string) (err error)
UpdateStatus ...
type VariableEndpoint ¶ added in v0.6.0
type VariableEndpoint struct {
*CommonEndpoint
}
VariableEndpoint ...
func NewVariableEndpoint ¶ added in v0.6.0
func NewVariableEndpoint(common *CommonEndpoint) *VariableEndpoint
NewVariableEndpoint ...
func (*VariableEndpoint) Add ¶ added in v0.6.0
func (v *VariableEndpoint) Add(ctx context.Context, variable m.Variable) (errs validator.ValidationErrorsTranslations, err error)
Add ...
func (*VariableEndpoint) Delete ¶ added in v0.6.0
func (v *VariableEndpoint) Delete(ctx context.Context, name string) (err error)
Delete ...
func (*VariableEndpoint) GetById ¶ added in v0.6.0
func (v *VariableEndpoint) GetById(ctx context.Context, name string) (variable m.Variable, err error)
GetById ...
type VersionEndpoint ¶ added in v0.0.24
type VersionEndpoint struct {
*CommonEndpoint
}
VersionEndpoint ...
func NewVersionEndpoint ¶ added in v0.0.24
func NewVersionEndpoint(common *CommonEndpoint) *VersionEndpoint
NewVersionEndpoint ...
func (*VersionEndpoint) ServerVersion ¶ added in v0.0.24
func (v *VersionEndpoint) ServerVersion() (ver m.Version)
ServerVersion ...
type Zigbee2mqttEndpoint ¶ added in v0.1.0
type Zigbee2mqttEndpoint struct {
*CommonEndpoint
}
Zigbee2mqttEndpoint ...
func NewZigbee2mqttEndpoint ¶ added in v0.1.0
func NewZigbee2mqttEndpoint(common *CommonEndpoint) *Zigbee2mqttEndpoint
NewZigbee2mqttEndpoint ...
func (*Zigbee2mqttEndpoint) AddBridge ¶ added in v0.5.2
func (n *Zigbee2mqttEndpoint) AddBridge(ctx context.Context, params *m.Zigbee2mqtt) (result *m.Zigbee2mqtt, errs validator.ValidationErrorsTranslations, err error)
AddBridge ...
func (*Zigbee2mqttEndpoint) Delete ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) Delete(ctx context.Context, id int64) (err error)
Delete ...
func (*Zigbee2mqttEndpoint) DeviceBan ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) DeviceBan(ctx context.Context, id int64, friendlyName string) (err error)
DeviceBan ...
func (*Zigbee2mqttEndpoint) DeviceList ¶ added in v0.5.2
func (n *Zigbee2mqttEndpoint) DeviceList(ctx context.Context, bridgeId int64, pagination common.PageParams) (result []*m.Zigbee2mqttDevice, total int64, err error)
DeviceList ...
func (*Zigbee2mqttEndpoint) DeviceRename ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) DeviceRename(ctx context.Context, friendlyName, name string) (err error)
DeviceRename ...
func (*Zigbee2mqttEndpoint) DeviceWhitelist ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) DeviceWhitelist(ctx context.Context, id int64, friendlyName string) (err error)
DeviceWhitelist ...
func (*Zigbee2mqttEndpoint) GetBridgeById ¶ added in v0.5.2
func (n *Zigbee2mqttEndpoint) GetBridgeById(ctx context.Context, id int64) (result *zigbee2mqtt.Zigbee2mqttBridge, err error)
GetBridgeById ...
func (*Zigbee2mqttEndpoint) GetBridgeList ¶ added in v0.5.2
func (n *Zigbee2mqttEndpoint) GetBridgeList(ctx context.Context, pagination common.PageParams) (result []*zigbee2mqtt.Zigbee2mqttBridge, total int64, err error)
GetBridgeList ...
func (*Zigbee2mqttEndpoint) Networkmap ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) Networkmap(ctx context.Context, id int64) (networkmap string, err error)
Networkmap ...
func (*Zigbee2mqttEndpoint) ResetBridge ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) ResetBridge(ctx context.Context, id int64) (err error)
ResetBridge ...
func (*Zigbee2mqttEndpoint) SearchDevice ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) SearchDevice(ctx context.Context, search common.SearchParams) (result []*m.Zigbee2mqttDevice, total int64, err error)
SearchDevice ...
func (*Zigbee2mqttEndpoint) UpdateBridge ¶ added in v0.5.2
func (n *Zigbee2mqttEndpoint) UpdateBridge(ctx context.Context, params *m.Zigbee2mqtt) (bridge *m.Zigbee2mqtt, errs validator.ValidationErrorsTranslations, err error)
UpdateBridge ...
func (*Zigbee2mqttEndpoint) UpdateNetworkmap ¶ added in v0.1.0
func (n *Zigbee2mqttEndpoint) UpdateNetworkmap(ctx context.Context, id int64) (err error)
UpdateNetworkmap ...
Source Files ¶
- alexa_skill.go
- area.go
- auth.go
- backup.go
- common.go
- dashboard.go
- dashboard_card.go
- dashboard_card_item.go
- dashboard_tab.go
- developer_tools.go
- endpoint.go
- entity.go
- entity_storage.go
- image.go
- interact.go
- log.go
- message_delivery.go
- metric.go
- mqtt.go
- notify.go
- plugin.go
- plugin_actor.go
- role.go
- script.go
- task.go
- template.go
- user.go
- variable.go
- version.go
- zigbee2mqtt.go