Documentation ¶
Index ¶
- type Action
- type Adaptors
- type AlexaIntent
- type AlexaSkill
- func (n *AlexaSkill) Add(app *m.AlexaSkill) (id int64, err error)
- func (n *AlexaSkill) Delete(appId int64) (err error)
- func (n *AlexaSkill) GetById(appId int64) (app *m.AlexaSkill, err error)
- func (n *AlexaSkill) List(limit, offset int64, orderBy, sort string) (list []*m.AlexaSkill, total int64, err error)
- func (n *AlexaSkill) ListEnabled(limit, offset int64) (list []*m.AlexaSkill, err error)
- func (n *AlexaSkill) Update(params *m.AlexaSkill) (err error)
- type Area
- func (n *Area) Add(ver *m.Area) (id int64, err error)
- func (n *Area) DeleteByName(name string) (err error)
- func (n *Area) GetById(verId int64) (ver *m.Area, err error)
- func (a *Area) GetByName(name string) (ver *m.Area, err error)
- func (n *Area) List(limit, offset int64, orderBy, sort string) (list []*m.Area, total int64, err error)
- func (n *Area) Search(query string, limit, offset int64) (list []*m.Area, total int64, err error)
- func (n *Area) Update(ver *m.Area) (err error)
- type Condition
- type Dashboard
- func (n *Dashboard) Add(ver *m.Dashboard) (id int64, err error)
- func (n *Dashboard) Delete(id int64) (err error)
- func (n *Dashboard) GetById(mapId int64) (ver *m.Dashboard, err error)
- func (n *Dashboard) Import(ver *m.Dashboard) (boardId int64, err error)
- func (n *Dashboard) List(limit, offset int64, orderBy, sort string) (list []*m.Dashboard, total int64, err error)
- func (n *Dashboard) Search(query string, limit, offset int64) (list []*m.Dashboard, total int64, err error)
- func (n *Dashboard) Update(ver *m.Dashboard) (err error)
- type DashboardCard
- func (n *DashboardCard) Add(ver *m.DashboardCard) (id int64, err error)
- func (n *DashboardCard) Delete(id int64) (err error)
- func (n *DashboardCard) GetById(mapId int64) (ver *m.DashboardCard, err error)
- func (n *DashboardCard) Import(card *m.DashboardCard) (cardId int64, err error)
- func (n *DashboardCard) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCard, total int64, err error)
- func (n *DashboardCard) Update(ver *m.DashboardCard) (err error)
- type DashboardCardItem
- func (n *DashboardCardItem) Add(ver *m.DashboardCardItem) (id int64, err error)
- func (n *DashboardCardItem) Delete(id int64) (err error)
- func (n *DashboardCardItem) GetById(mapId int64) (ver *m.DashboardCardItem, err error)
- func (n *DashboardCardItem) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCardItem, total int64, err error)
- func (n *DashboardCardItem) Update(ver *m.DashboardCardItem) (err error)
- type DashboardTab
- func (n *DashboardTab) Add(ver *m.DashboardTab) (id int64, err error)
- func (n *DashboardTab) Delete(id int64) (err error)
- func (n *DashboardTab) GetById(mapId int64) (ver *m.DashboardTab, err error)
- func (n *DashboardTab) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardTab, total int64, err error)
- func (n *DashboardTab) Update(ver *m.DashboardTab) (err error)
- type Entity
- func (n *Entity) Add(ver *m.Entity) (err error)
- func (n *Entity) AppendMetric(entityId common.EntityId, metric *m.Metric) (err error)
- func (n *Entity) Delete(id common.EntityId) (err error)
- func (n *Entity) DeleteMetric(entityId common.EntityId, metric *m.Metric) (err error)
- func (n *Entity) GetById(id common.EntityId) (ver *m.Entity, err error)
- func (n *Entity) GetByIds(ids []common.EntityId) (list []*m.Entity, err error)
- func (n *Entity) GetByType(t string, limit, offset int64) (list []*m.Entity, err error)
- func (n *Entity) Import(ver *m.Entity) (err error)
- func (n *Entity) List(limit, offset int64, orderBy, sort string, autoLoad bool) (list []*m.Entity, total int64, err error)
- func (n *Entity) Search(query string, limit, offset int64) (list []*m.Entity, total int64, err error)
- func (n *Entity) Update(ver *m.Entity) (err error)
- func (n *Entity) UpdateSettings(entity common.EntityId, settings m.Attributes) (err error)
- type EntityAction
- type EntityState
- type EntityStorage
- func (n *EntityStorage) Add(ver *m.EntityStorage) (id int64, err error)
- func (n *EntityStorage) DeleteOldest(days int) (err error)
- func (n *EntityStorage) GetLastByEntityId(entityId common.EntityId) (ver *m.EntityStorage, err error)
- func (n *EntityStorage) List(limit, offset int64, orderBy, sort string) (list []*m.EntityStorage, total int64, err error)
- func (n *EntityStorage) ListByEntityId(limit, offset int64, orderBy, sort string, entityId common.EntityId, ...) (list []*m.EntityStorage, total int64, err error)
- type IAction
- type IAlexaIntent
- type IAlexaSkill
- type IArea
- type ICondition
- type IDashboard
- type IDashboardCard
- type IDashboardCardItem
- type IDashboardTab
- type IEntity
- type IEntityAction
- type IEntityState
- type IEntityStorage
- type IImage
- type ILog
- type IMessage
- type IMessageDelivery
- type IMetric
- type IMetricBucket
- type IPermission
- type IPlugin
- type IRole
- type IRunHistory
- type IScript
- type ITask
- type ITelegramChat
- type ITemplate
- type ITrigger
- type IUser
- type IUserMeta
- type IVariable
- type IZigbee2mqtt
- type IZigbee2mqttDevice
- type Image
- func (n *Image) Add(ver *m.Image) (id int64, err error)
- func (n *Image) AddMultiple(items []*m.Image) (err error)
- func (n *Image) Delete(mapId int64) (err error)
- func (n *Image) GetAllByDate(filter string) (images []*m.Image, err error)
- func (n *Image) GetById(mapId int64) (ver *m.Image, err error)
- func (n *Image) GetByImageName(imageName string) (ver *m.Image, err error)
- func (n *Image) GetFilterList() (filterList []*m.ImageFilterList, err error)
- func (n *Image) List(limit, offset int64, orderBy, sort string) (list []*m.Image, total int64, err error)
- func (n *Image) Update(ver *m.Image) (err error)
- func (n *Image) UploadImage(reader *bufio.Reader, fileName string) (newFile *m.Image, err error)
- type Log
- func (n *Log) Add(ver *m.Log) (id int64, err error)
- func (n *Log) AddMultiple(items []*m.Log) (err error)
- func (n *Log) Delete(verId int64) (err error)
- func (n *Log) DeleteOldest(days int) (err error)
- func (n *Log) GetById(verId int64) (ver *m.Log, err error)
- func (n *Log) List(limit, offset int64, orderBy, sort string, queryObj *m.LogQuery) (list []*m.Log, total int64, err error)
- func (n *Log) Search(query string, limit, offset int) (list []*m.Log, total int64, err error)
- type Message
- type MessageDelivery
- func (n *MessageDelivery) Add(msg m.MessageDelivery) (id int64, err error)
- func (n *MessageDelivery) Delete(id int64) (err error)
- func (n *MessageDelivery) GetAllUncompleted(limit, offset int64) (list []m.MessageDelivery, total int64, err error)
- func (n *MessageDelivery) GetById(id int64) (ver m.MessageDelivery, err error)
- func (n *MessageDelivery) List(limit, offset int64, orderBy, sort string) (list []m.MessageDelivery, total int64, err error)
- func (n *MessageDelivery) SetStatus(msg m.MessageDelivery) (err error)
- type Metric
- func (n *Metric) Add(ver *m.Metric) (id int64, err error)
- func (n *Metric) AddMultiple(items []*m.Metric) (err error)
- func (n *Metric) Delete(deviceId int64) (err error)
- func (n *Metric) GetById(id int64) (metric *m.Metric, err error)
- func (n *Metric) GetByIdWithData(id int64, from, to *time.Time, metricRange *string) (metric *m.Metric, err error)
- func (n *Metric) List(limit, offset int64, orderBy, sort string) (list []*m.Metric, total int64, err error)
- func (n *Metric) Search(query string, limit, offset int) (list []*m.Metric, total int64, err error)
- func (n *Metric) Update(ver *m.Metric) error
- type MetricBucket
- func (n *MetricBucket) Add(ver m.MetricDataItem) error
- func (n *MetricBucket) AddMultiple(items []m.MetricDataItem) (err error)
- func (n *MetricBucket) CreateHypertable() (err error)
- func (n *MetricBucket) DeleteById(id int64) (err error)
- func (n *MetricBucket) DeleteByMetricId(metricId int64) (err error)
- func (n *MetricBucket) DeleteOldest(days int) (err error)
- func (n *MetricBucket) Simple24HPreview(metricId int64, optionItems []string) (list []m.MetricDataItem, err error)
- func (n *MetricBucket) SimpleListWithSoftRange(_from, _to *time.Time, metricId int64, _metricRange *string, ...) (list []m.MetricDataItem, err error)
- type Permission
- type Plugin
- func (p *Plugin) Add(plugin m.Plugin) (err error)
- func (p *Plugin) CreateOrUpdate(plugin m.Plugin) (err error)
- func (p *Plugin) Delete(name string) (err error)
- func (p *Plugin) GetByName(name string) (ver m.Plugin, err error)
- func (p *Plugin) List(limit, offset int64, orderBy, sort string) (list []m.Plugin, total int64, err error)
- func (p *Plugin) Search(query string, limit, offset int64) (list []m.Plugin, total int64, err error)
- func (p *Plugin) Update(plugin m.Plugin) (err error)
- type Role
- func (n *Role) Add(role *m.Role) (err error)
- func (n *Role) Delete(name string) (err error)
- func (n *Role) GetAccessList(role *m.Role) (err error)
- func (n *Role) GetByName(name string) (role *m.Role, err error)
- func (n *Role) List(limit, offset int64, orderBy, sort string) (list []*m.Role, total int64, err error)
- func (n *Role) Search(query string, limit, offset int64) (list []*m.Role, total int64, err error)
- func (n *Role) Update(role *m.Role) (err error)
- type RunHistory
- type Script
- func (n *Script) Add(script *m.Script) (id int64, err error)
- func (n *Script) Delete(scriptId int64) (err error)
- func (n *Script) GetById(scriptId int64) (script *m.Script, err error)
- func (n *Script) GetByName(name string) (script *m.Script, err error)
- func (n *Script) List(limit, offset int64, orderBy, sort string) (list []*m.Script, total int64, err error)
- func (n *Script) Search(query string, limit, offset int64) (list []*m.Script, total int64, err error)
- func (n *Script) Update(script *m.Script) (err error)
- type Task
- func (n *Task) Add(ver *m.Task) (err error)
- func (n *Task) Delete(id int64) (err error)
- func (n *Task) Disable(id int64) (err error)
- func (n *Task) Enable(id int64) (err error)
- func (n *Task) GetById(id int64) (task *m.Task, err error)
- func (n *Task) List(limit, offset int64, orderBy, sort string, onlyEnabled bool) (list []*m.Task, total int64, err error)
- func (n *Task) Update(ver *m.Task) (err error)
- type TelegramChat
- type Template
- func (n *Template) Create(ver *m.Template) (err error)
- func (n *Template) Delete(name string) (err error)
- func (n *Template) GetByName(name string) (ver *m.Template, err error)
- func (n *Template) GetItemByName(name string) (ver *m.Template, err error)
- func (n *Template) GetItemsSortedList() (count int64, items []string, err error)
- func (n *Template) GetItemsTree() (tree []*m.TemplateTree, err error)
- func (n *Template) GetList(templateType m.TemplateType) (items []*m.Template, err error)
- func (n *Template) GetMarkers(template *m.Template) (err error)
- func (n *Template) Render(name string, params map[string]interface{}) (render *m.TemplateRender, err error)
- func (n *Template) Search(query string, limit, offset int) (list []*m.Template, total int64, err error)
- func (n *Template) UpdateItemsTree(tree []*m.TemplateTree) (err error)
- func (n *Template) UpdateOrCreate(ver *m.Template) (err error)
- func (n *Template) UpdateStatus(ver *m.Template) (err error)
- type Trigger
- type User
- func (n *User) Add(user *m.User) (id int64, err error)
- func (n *User) ClearResetPassToken(u *m.User) (err error)
- func (n *User) ClearToken(u *m.User) (err error)
- func (n *User) Delete(userId int64) (err error)
- func (n *User) GenResetPassToken(u *m.User) (token string, err error)
- func (n *User) GetByAuthenticationToken(token string) (user *m.User, err error)
- func (n *User) GetByEmail(email string) (user *m.User, err error)
- func (n *User) GetById(userId int64) (user *m.User, err error)
- func (n *User) GetByNickname(nick string) (user *m.User, err error)
- func (n *User) GetByResetPassToken(token string) (user *m.User, err error)
- func (n *User) List(limit, offset int64, orderBy, sort string) (list []*m.User, total int64, err error)
- func (n *User) SignIn(u *m.User, ipv4 string) (err error)
- func (n *User) Update(user *m.User) (err error)
- type UserMeta
- type Variable
- func (n *Variable) Add(ver m.Variable) (err error)
- func (n *Variable) CreateOrUpdate(ver m.Variable) (err error)
- func (n *Variable) Delete(name string) (err error)
- func (n *Variable) GetByName(name string) (ver m.Variable, err error)
- func (n *Variable) List(limit, offset int64, orderBy, sort string, system bool) (list []m.Variable, total int64, err error)
- func (s *Variable) Search(query string, limit, offset int) (list []m.Variable, total int64, err error)
- func (n *Variable) Update(variable m.Variable) (err error)
- type Zigbee2mqtt
- func (n *Zigbee2mqtt) Add(ver *m.Zigbee2mqtt) (id int64, err error)
- func (n *Zigbee2mqtt) Delete(id int64) (err error)
- func (n *Zigbee2mqtt) GetById(id int64) (ver *m.Zigbee2mqtt, err error)
- func (a *Zigbee2mqtt) GetByLogin(login string) (ver *m.Zigbee2mqtt, err error)
- func (n *Zigbee2mqtt) List(limit, offset int64) (list []*m.Zigbee2mqtt, total int64, err error)
- func (n *Zigbee2mqtt) Update(ver *m.Zigbee2mqtt) (err error)
- type Zigbee2mqttDevice
- func (n *Zigbee2mqttDevice) Add(ver *m.Zigbee2mqttDevice) (err error)
- func (n *Zigbee2mqttDevice) Delete(id string) (err error)
- func (n *Zigbee2mqttDevice) GetById(id string) (ver *m.Zigbee2mqttDevice, err error)
- func (n *Zigbee2mqttDevice) List(limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttDevice) ListByBridgeId(bridgeId, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttDevice) Search(query string, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttDevice) Update(ver *m.Zigbee2mqttDevice) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶ added in v0.5.0
type Action struct { IAction // contains filtered or unexported fields }
Action ...
func (*Action) AddMultiple ¶ added in v0.5.0
AddMultiple ...
func (*Action) DeleteByTaskId ¶ added in v0.5.0
DeleteByTaskId ...
type Adaptors ¶
type Adaptors struct { Script IScript Role IRole Permission IPermission User IUser UserMeta IUserMeta Image IImage Variable IVariable Entity IEntity EntityState IEntityState EntityAction IEntityAction EntityStorage IEntityStorage Log ILog Template ITemplate Message IMessage MessageDelivery IMessageDelivery Zigbee2mqtt IZigbee2mqtt Zigbee2mqttDevice IZigbee2mqttDevice AlexaSkill IAlexaSkill AlexaIntent IAlexaIntent Metric IMetric MetricBucket IMetricBucket Area IArea Action IAction Condition ICondition Trigger ITrigger Task ITask RunHistory IRunHistory Plugin IPlugin TelegramChat ITelegramChat Dashboard IDashboard DashboardTab IDashboardTab DashboardCard IDashboardCard DashboardCardItem IDashboardCardItem // contains filtered or unexported fields }
Adaptors ...
func NewAdaptors ¶
func NewAdaptors(lc fx.Lifecycle, db *gorm.DB, cfg *models.AppConfig, migrations *migrations.Migrations, orm *orm.Orm) (adaptors *Adaptors)
NewAdaptors ...
type AlexaIntent ¶ added in v0.3.0
type AlexaIntent struct { IAlexaIntent // contains filtered or unexported fields }
AlexaIntent ...
func (*AlexaIntent) Add ¶ added in v0.3.0
func (n *AlexaIntent) Add(ver *m.AlexaIntent) error
Add ...
func (*AlexaIntent) Delete ¶ added in v0.3.0
func (n *AlexaIntent) Delete(ver *m.AlexaIntent) (err error)
Delete ...
func (*AlexaIntent) GetByName ¶ added in v0.3.0
func (n *AlexaIntent) GetByName(name string) (ver *m.AlexaIntent, err error)
GetByName ...
func (*AlexaIntent) Update ¶ added in v0.3.0
func (n *AlexaIntent) Update(ver *m.AlexaIntent) (err error)
Update ...
type AlexaSkill ¶ added in v0.3.0
type AlexaSkill struct { IAlexaSkill // contains filtered or unexported fields }
AlexaSkill ...
func (*AlexaSkill) Add ¶ added in v0.3.0
func (n *AlexaSkill) Add(app *m.AlexaSkill) (id int64, err error)
Add ...
func (*AlexaSkill) Delete ¶ added in v0.3.0
func (n *AlexaSkill) Delete(appId int64) (err error)
Delete ...
func (*AlexaSkill) GetById ¶ added in v0.3.0
func (n *AlexaSkill) GetById(appId int64) (app *m.AlexaSkill, err error)
GetById ...
func (*AlexaSkill) List ¶ added in v0.3.0
func (n *AlexaSkill) List(limit, offset int64, orderBy, sort string) (list []*m.AlexaSkill, total int64, err error)
List ...
func (*AlexaSkill) ListEnabled ¶ added in v0.3.0
func (n *AlexaSkill) ListEnabled(limit, offset int64) (list []*m.AlexaSkill, err error)
ListEnabled ...
func (*AlexaSkill) Update ¶ added in v0.3.0
func (n *AlexaSkill) Update(params *m.AlexaSkill) (err error)
Update ...
type Area ¶ added in v0.5.0
type Area struct { IArea // contains filtered or unexported fields }
Area ...
func (*Area) DeleteByName ¶ added in v0.5.0
DeleteByName ...
func (*Area) List ¶ added in v0.5.0
func (n *Area) List(limit, offset int64, orderBy, sort string) (list []*m.Area, total int64, err error)
List ...
type Condition ¶ added in v0.5.0
type Condition struct { ICondition // contains filtered or unexported fields }
Condition ...
func (*Condition) AddMultiple ¶ added in v0.5.0
AddMultiple ...
func (*Condition) DeleteByTaskId ¶ added in v0.5.0
DeleteByTaskId ...
type Dashboard ¶ added in v0.6.0
type Dashboard struct { IDashboard // contains filtered or unexported fields }
Dashboard ...
func (*Dashboard) List ¶ added in v0.6.0
func (n *Dashboard) List(limit, offset int64, orderBy, sort string) (list []*m.Dashboard, total int64, err error)
List ...
type DashboardCard ¶ added in v0.6.0
type DashboardCard struct { IDashboardCard // contains filtered or unexported fields }
DashboardCard ...
func (*DashboardCard) Add ¶ added in v0.6.0
func (n *DashboardCard) Add(ver *m.DashboardCard) (id int64, err error)
Add ...
func (*DashboardCard) Delete ¶ added in v0.6.0
func (n *DashboardCard) Delete(id int64) (err error)
Delete ...
func (*DashboardCard) GetById ¶ added in v0.6.0
func (n *DashboardCard) GetById(mapId int64) (ver *m.DashboardCard, err error)
GetById ...
func (*DashboardCard) Import ¶ added in v0.6.0
func (n *DashboardCard) Import(card *m.DashboardCard) (cardId int64, err error)
Import ...
func (*DashboardCard) List ¶ added in v0.6.0
func (n *DashboardCard) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCard, total int64, err error)
List ...
func (*DashboardCard) Update ¶ added in v0.6.0
func (n *DashboardCard) Update(ver *m.DashboardCard) (err error)
Update ...
type DashboardCardItem ¶ added in v0.6.0
type DashboardCardItem struct { IDashboardCardItem // contains filtered or unexported fields }
DashboardCardItem ...
func (*DashboardCardItem) Add ¶ added in v0.6.0
func (n *DashboardCardItem) Add(ver *m.DashboardCardItem) (id int64, err error)
Add ...
func (*DashboardCardItem) Delete ¶ added in v0.6.0
func (n *DashboardCardItem) Delete(id int64) (err error)
Delete ...
func (*DashboardCardItem) GetById ¶ added in v0.6.0
func (n *DashboardCardItem) GetById(mapId int64) (ver *m.DashboardCardItem, err error)
GetById ...
func (*DashboardCardItem) List ¶ added in v0.6.0
func (n *DashboardCardItem) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCardItem, total int64, err error)
List ...
func (*DashboardCardItem) Update ¶ added in v0.6.0
func (n *DashboardCardItem) Update(ver *m.DashboardCardItem) (err error)
Update ...
type DashboardTab ¶ added in v0.6.0
type DashboardTab struct { IDashboardTab // contains filtered or unexported fields }
DashboardTab ...
func (*DashboardTab) Add ¶ added in v0.6.0
func (n *DashboardTab) Add(ver *m.DashboardTab) (id int64, err error)
Add ...
func (*DashboardTab) Delete ¶ added in v0.6.0
func (n *DashboardTab) Delete(id int64) (err error)
Delete ...
func (*DashboardTab) GetById ¶ added in v0.6.0
func (n *DashboardTab) GetById(mapId int64) (ver *m.DashboardTab, err error)
GetById ...
func (*DashboardTab) List ¶ added in v0.6.0
func (n *DashboardTab) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardTab, total int64, err error)
List ...
func (*DashboardTab) Update ¶ added in v0.6.0
func (n *DashboardTab) Update(ver *m.DashboardTab) (err error)
Update ...
type Entity ¶ added in v0.5.0
type Entity struct { IEntity // contains filtered or unexported fields }
Entity ...
func (*Entity) AppendMetric ¶ added in v0.5.0
AppendMetric ...
func (*Entity) DeleteMetric ¶ added in v0.5.0
DeleteMetric ...
func (*Entity) List ¶ added in v0.5.0
func (n *Entity) List(limit, offset int64, orderBy, sort string, autoLoad bool) (list []*m.Entity, total int64, err error)
List ...
func (*Entity) Search ¶ added in v0.5.0
func (n *Entity) Search(query string, limit, offset int64) (list []*m.Entity, total int64, err error)
Search ...
func (*Entity) UpdateSettings ¶ added in v0.5.0
UpdateSettings ...
type EntityAction ¶ added in v0.5.0
type EntityAction struct { IEntityAction // contains filtered or unexported fields }
EntityAction ...
func (*EntityAction) Add ¶ added in v0.5.0
func (n *EntityAction) Add(ver *m.EntityAction) (id int64, err error)
Add ...
func (*EntityAction) AddMultiple ¶ added in v0.5.0
func (n *EntityAction) AddMultiple(items []*m.EntityAction) (err error)
AddMultiple ...
func (*EntityAction) DeleteByEntityId ¶ added in v0.5.0
func (n *EntityAction) DeleteByEntityId(id common.EntityId) (err error)
DeleteByEntityId ...
type EntityState ¶ added in v0.5.0
type EntityState struct {
// contains filtered or unexported fields
}
EntityState ...
func (*EntityState) Add ¶ added in v0.5.0
func (n *EntityState) Add(ver *m.EntityState) (id int64, err error)
Add ...
func (*EntityState) AddMultiple ¶ added in v0.5.0
func (n *EntityState) AddMultiple(items []*m.EntityState) (err error)
AddMultiple ...
func (*EntityState) DeleteByEntityId ¶ added in v0.5.0
func (n *EntityState) DeleteByEntityId(entityId common.EntityId) (err error)
DeleteByEntityId ...
type EntityStorage ¶ added in v0.5.0
type EntityStorage struct { IEntityStorage // contains filtered or unexported fields }
EntityStorage ...
func (*EntityStorage) Add ¶ added in v0.5.0
func (n *EntityStorage) Add(ver *m.EntityStorage) (id int64, err error)
Add ...
func (*EntityStorage) DeleteOldest ¶ added in v0.9.4
func (n *EntityStorage) DeleteOldest(days int) (err error)
DeleteOldest ...
func (*EntityStorage) GetLastByEntityId ¶ added in v0.5.0
func (n *EntityStorage) GetLastByEntityId(entityId common.EntityId) (ver *m.EntityStorage, err error)
GetLastByEntityId ...
func (*EntityStorage) List ¶ added in v0.5.0
func (n *EntityStorage) List(limit, offset int64, orderBy, sort string) (list []*m.EntityStorage, total int64, err error)
List ...
func (*EntityStorage) ListByEntityId ¶ added in v0.6.0
func (n *EntityStorage) ListByEntityId(limit, offset int64, orderBy, sort string, entityId common.EntityId, startDate, endDate *time.Time) (list []*m.EntityStorage, total int64, err error)
ListByEntityId ...
type IAction ¶ added in v0.5.0
type IAction interface { DeleteByTaskId(id int64) (err error) AddMultiple(items []*m.Action) (err error) // contains filtered or unexported methods }
IAction ...
func GetActionAdaptor ¶ added in v0.5.0
GetActionAdaptor ...
type IAlexaIntent ¶ added in v0.5.0
type IAlexaIntent interface { Add(ver *m.AlexaIntent) (err error) GetByName(name string) (ver *m.AlexaIntent, err error) Update(ver *m.AlexaIntent) (err error) Delete(ver *m.AlexaIntent) (err error) // contains filtered or unexported methods }
IAlexaIntent ...
func GetAlexaIntentAdaptor ¶ added in v0.3.0
func GetAlexaIntentAdaptor(d *gorm.DB) IAlexaIntent
GetAlexaIntentAdaptor ...
type IAlexaSkill ¶ added in v0.5.0
type IAlexaSkill interface { Add(app *m.AlexaSkill) (id int64, err error) GetById(appId int64) (app *m.AlexaSkill, err error) Update(params *m.AlexaSkill) (err error) Delete(appId int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.AlexaSkill, total int64, err error) ListEnabled(limit, offset int64) (list []*m.AlexaSkill, err error) // contains filtered or unexported methods }
IAlexaSkill ...
func GetAlexaSkillAdaptor ¶ added in v0.3.0
func GetAlexaSkillAdaptor(d *gorm.DB) IAlexaSkill
GetAlexaSkillAdaptor ...
type IArea ¶ added in v0.5.0
type IArea interface { Add(ver *m.Area) (id int64, err error) GetById(verId int64) (ver *m.Area, err error) GetByName(name string) (ver *m.Area, err error) Update(ver *m.Area) (err error) DeleteByName(name string) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Area, total int64, err error) Search(query string, limit, offset int64) (list []*m.Area, total int64, err error) // contains filtered or unexported methods }
IArea ...
type ICondition ¶ added in v0.5.0
type ICondition interface { DeleteByTaskId(id int64) (err error) AddMultiple(items []*m.Condition) (err error) // contains filtered or unexported methods }
ICondition ...
func GetConditionAdaptor ¶ added in v0.5.0
func GetConditionAdaptor(d *gorm.DB) ICondition
GetConditionAdaptor ...
type IDashboard ¶ added in v0.6.0
type IDashboard interface { Add(ver *m.Dashboard) (id int64, err error) GetById(mapId int64) (ver *m.Dashboard, err error) Update(ver *m.Dashboard) (err error) Import(*m.Dashboard) (int64, error) Delete(id int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Dashboard, total int64, err error) Search(query string, limit, offset int64) (list []*m.Dashboard, total int64, err error) }
func GetDashboardAdaptor ¶ added in v0.6.0
func GetDashboardAdaptor(d *gorm.DB) IDashboard
GetDashboardAdaptor ...
type IDashboardCard ¶ added in v0.6.0
type IDashboardCard interface { Add(ver *m.DashboardCard) (id int64, err error) GetById(mapId int64) (ver *m.DashboardCard, err error) Update(ver *m.DashboardCard) (err error) Delete(id int64) (err error) Import(card *m.DashboardCard) (cardId int64, err error) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCard, total int64, err error) // contains filtered or unexported methods }
func GetDashboardCardAdaptor ¶ added in v0.6.0
func GetDashboardCardAdaptor(d *gorm.DB) IDashboardCard
GetDashboardCardAdaptor ...
type IDashboardCardItem ¶ added in v0.6.0
type IDashboardCardItem interface { Add(ver *m.DashboardCardItem) (id int64, err error) GetById(mapId int64) (ver *m.DashboardCardItem, err error) Update(ver *m.DashboardCardItem) (err error) Delete(id int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardCardItem, total int64, err error) // contains filtered or unexported methods }
func GetDashboardCardItemAdaptor ¶ added in v0.6.0
func GetDashboardCardItemAdaptor(d *gorm.DB) IDashboardCardItem
GetDashboardCardItemAdaptor ...
type IDashboardTab ¶ added in v0.6.0
type IDashboardTab interface { Add(ver *m.DashboardTab) (id int64, err error) GetById(mapId int64) (ver *m.DashboardTab, err error) Update(ver *m.DashboardTab) (err error) Delete(id int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.DashboardTab, total int64, err error) // contains filtered or unexported methods }
func GetDashboardTabAdaptor ¶ added in v0.6.0
func GetDashboardTabAdaptor(d *gorm.DB) IDashboardTab
GetDashboardTabAdaptor ...
type IEntity ¶ added in v0.5.0
type IEntity interface { Add(ver *m.Entity) (err error) GetById(id common.EntityId) (ver *m.Entity, err error) GetByIds(ids []common.EntityId) (ver []*m.Entity, err error) Delete(id common.EntityId) (err error) List(limit, offset int64, orderBy, sort string, autoLoad bool) (list []*m.Entity, total int64, err error) GetByType(t string, limit, offset int64) (list []*m.Entity, err error) Update(ver *m.Entity) (err error) UpdateSettings(entityId common.EntityId, settings m.Attributes) (err error) Search(query string, limit, offset int64) (list []*m.Entity, total int64, err error) AppendMetric(entityId common.EntityId, metric *m.Metric) (err error) DeleteMetric(entityId common.EntityId, metric *m.Metric) (err error) Import(entity *m.Entity) (err error) // contains filtered or unexported methods }
IEntity ...
func GetEntityAdaptor ¶ added in v0.5.0
GetEntityAdaptor ...
type IEntityAction ¶ added in v0.5.0
type IEntityAction interface { Add(ver *m.EntityAction) (id int64, err error) DeleteByEntityId(id common.EntityId) (err error) AddMultiple(items []*m.EntityAction) (err error) // contains filtered or unexported methods }
IEntityAction ...
func GetEntityActionAdaptor ¶ added in v0.5.0
func GetEntityActionAdaptor(d *gorm.DB) IEntityAction
GetEntityActionAdaptor ...
type IEntityState ¶ added in v0.5.0
type IEntityState interface { Add(ver *m.EntityState) (id int64, err error) DeleteByEntityId(entityId common.EntityId) (err error) AddMultiple(items []*m.EntityState) (err error) // contains filtered or unexported methods }
IEntityState ...
func GetEntityStateAdaptor ¶ added in v0.5.0
func GetEntityStateAdaptor(d *gorm.DB) IEntityState
GetEntityStateAdaptor ...
type IEntityStorage ¶ added in v0.5.0
type IEntityStorage interface { Add(ver *m.EntityStorage) (id int64, err error) GetLastByEntityId(entityId common.EntityId) (ver *m.EntityStorage, err error) List(limit, offset int64, orderBy, sort string) (list []*m.EntityStorage, total int64, err error) ListByEntityId(limit, offset int64, orderBy, sort string, entityId common.EntityId, startDate, endDate *time.Time) (list []*m.EntityStorage, total int64, err error) DeleteOldest(days int) (err error) // contains filtered or unexported methods }
IEntityStorage ...
func GetEntityStorageAdaptor ¶ added in v0.5.0
func GetEntityStorageAdaptor(d *gorm.DB) IEntityStorage
GetEntityStorageAdaptor ...
type IImage ¶ added in v0.5.0
type IImage interface { Add(ver *m.Image) (id int64, err error) GetByImageName(imageName string) (ver *m.Image, err error) GetById(mapId int64) (ver *m.Image, err error) Update(ver *m.Image) (err error) Delete(mapId int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Image, total int64, err error) UploadImage(reader *bufio.Reader, fileName string) (file *m.Image, err error) AddMultiple(items []*m.Image) (err error) GetAllByDate(filter string) (images []*m.Image, err error) GetFilterList() (filterList []*m.ImageFilterList, err error) // contains filtered or unexported methods }
IImage ...
type ILog ¶ added in v0.5.0
type ILog interface { Add(ver *m.Log) (id int64, err error) AddMultiple(items []*m.Log) (err error) GetById(verId int64) (ver *m.Log, err error) Delete(verId int64) (err error) List(limit, offset int64, orderBy, sort string, queryObj *m.LogQuery) (list []*m.Log, total int64, err error) Search(query string, limit, offset int) (list []*m.Log, total int64, err error) DeleteOldest(days int) (err error) // contains filtered or unexported methods }
ILog ...
type IMessage ¶ added in v0.5.0
type IMessage interface { Add(msg m.Message) (id int64, err error) // contains filtered or unexported methods }
IMessage ...
func GetMessageAdaptor ¶ added in v0.0.17
GetMessageAdaptor ...
type IMessageDelivery ¶ added in v0.5.0
type IMessageDelivery interface { Add(msg m.MessageDelivery) (id int64, err error) SetStatus(msg m.MessageDelivery) (err error) List(limit, offset int64, orderBy, sort string) (list []m.MessageDelivery, total int64, err error) GetAllUncompleted(limit, offset int64) (list []m.MessageDelivery, total int64, err error) Delete(id int64) (err error) GetById(id int64) (ver m.MessageDelivery, err error) // contains filtered or unexported methods }
IMessageDelivery ...
func GetMessageDeliveryAdaptor ¶ added in v0.0.17
func GetMessageDeliveryAdaptor(d *gorm.DB) IMessageDelivery
GetMessageDeliveryAdaptor ...
type IMetric ¶ added in v0.5.0
type IMetric interface { Add(ver *m.Metric) (id int64, err error) GetById(id int64) (metric *m.Metric, err error) GetByIdWithData(id int64, from, to *time.Time, metricRange *string) (metric *m.Metric, err error) Update(ver *m.Metric) error Delete(deviceId int64) (err error) AddMultiple(items []*m.Metric) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Metric, total int64, err error) Search(query string, limit, offset int) (list []*m.Metric, total int64, err error) // contains filtered or unexported methods }
IMetric ...
type IMetricBucket ¶ added in v0.5.0
type IMetricBucket interface { Add(ver m.MetricDataItem) error AddMultiple(items []m.MetricDataItem) (err error) SimpleListWithSoftRange(_from, _to *time.Time, metricId int64, _metricRange *string, optionItems []string) (list []m.MetricDataItem, err error) Simple24HPreview(metricId int64, optionItems []string) (list []m.MetricDataItem, err error) DeleteOldest(days int) (err error) DeleteById(id int64) (err error) DeleteByMetricId(metricId int64) (err error) CreateHypertable() (err error) // contains filtered or unexported methods }
IMetricBucket ...
func GetMetricBucketAdaptor ¶ added in v0.5.0
func GetMetricBucketAdaptor(d *gorm.DB, orm *orm.Orm) IMetricBucket
GetMetricBucketAdaptor ...
type IPermission ¶ added in v0.5.0
type IPermission interface { Add(permission *m.Permission) (id int64, err error) Delete(roleName, packageName string, levelName []string) (err error) GetAllPermissions(roleName string) (permissions []*m.Permission, err error) // contains filtered or unexported methods }
IPermission ...
func GetPermissionAdaptor ¶
func GetPermissionAdaptor(d *gorm.DB) IPermission
GetPermissionAdaptor ...
type IPlugin ¶ added in v0.5.0
type IPlugin interface { Add(plugin m.Plugin) error CreateOrUpdate(ver m.Plugin) error Update(plugin m.Plugin) error Delete(pluginId string) error List(limit, offset int64, orderBy, sort string) (list []m.Plugin, total int64, err error) Search(query string, limit, offset int64) (list []m.Plugin, total int64, err error) GetByName(name string) (ver m.Plugin, err error) // contains filtered or unexported methods }
IPlugin ...
func GetPluginAdaptor ¶ added in v0.5.0
GetPluginAdaptor ...
type IRole ¶ added in v0.5.0
type IRole interface { Add(role *m.Role) (err error) GetByName(name string) (role *m.Role, err error) Update(role *m.Role) (err error) Delete(name string) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Role, total int64, err error) Search(query string, limit, offset int64) (list []*m.Role, total int64, err error) GetAccessList(role *m.Role) (err error) // contains filtered or unexported methods }
IRole ...
type IRunHistory ¶ added in v0.5.0
type IRunHistory interface { Add(story *m.RunStory) (id int64, err error) Update(story *m.RunStory) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.RunStory, total int64, err error) // contains filtered or unexported methods }
IRunHistory ...
func GetRunHistoryAdaptor ¶ added in v0.5.0
func GetRunHistoryAdaptor(d *gorm.DB) IRunHistory
GetRunHistoryAdaptor ...
type IScript ¶ added in v0.5.0
type IScript interface { Add(script *m.Script) (id int64, err error) GetById(scriptId int64) (script *m.Script, err error) GetByName(name string) (script *m.Script, err error) Update(script *m.Script) (err error) Delete(scriptId int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.Script, total int64, err error) Search(query string, limit, offset int64) (list []*m.Script, total int64, err error) // contains filtered or unexported methods }
IScript ...
type ITask ¶ added in v0.5.0
type ITask interface { Add(ver *m.Task) (err error) Update(ver *m.Task) (err error) Delete(id int64) (err error) GetById(id int64) (task *m.Task, err error) List(limit, offset int64, orderBy, sort string, onlyEnabled bool) (list []*m.Task, total int64, err error) Enable(id int64) (err error) Disable(id int64) (err error) // contains filtered or unexported methods }
ITask ...
type ITelegramChat ¶ added in v0.5.0
type ITelegramChat interface { Add(plugin m.TelegramChat) (err error) Delete(entityId common.EntityId, channelId int64) (err error) List(limit, offset int64, orderBy, sort string, entityId common.EntityId) (list []m.TelegramChat, total int64, err error) // contains filtered or unexported methods }
ITelegramChat ...
func GetTelegramChannelAdaptor ¶ added in v0.5.0
func GetTelegramChannelAdaptor(d *gorm.DB) ITelegramChat
GetTelegramChannelAdaptor ...
type ITemplate ¶ added in v0.5.0
type ITemplate interface { UpdateOrCreate(ver *m.Template) (err error) Create(ver *m.Template) (err error) UpdateStatus(ver *m.Template) (err error) GetList(templateType m.TemplateType) (items []*m.Template, err error) GetByName(name string) (ver *m.Template, err error) GetItemByName(name string) (ver *m.Template, err error) GetItemsSortedList() (count int64, items []string, err error) Delete(name string) (err error) GetItemsTree() (tree []*m.TemplateTree, err error) UpdateItemsTree(tree []*m.TemplateTree) (err error) Search(query string, limit, offset int) (list []*m.Template, total int64, err error) GetMarkers(template *m.Template) (err error) Render(name string, params map[string]interface{}) (render *m.TemplateRender, err error) // contains filtered or unexported methods }
ITemplate ...
func GetTemplateAdaptor ¶ added in v0.0.17
GetTemplateAdaptor ...
type ITrigger ¶ added in v0.5.0
type ITrigger interface { DeleteByTaskId(id int64) (err error) AddMultiple(items []*m.Trigger) (err error) // contains filtered or unexported methods }
ITrigger ...
func GetTriggerAdaptor ¶ added in v0.5.0
GetTriggerAdaptor ...
type IUser ¶ added in v0.5.0
type IUser interface { Add(user *m.User) (id int64, err error) GetById(userId int64) (user *m.User, err error) GetByNickname(nick string) (user *m.User, err error) GetByEmail(email string) (user *m.User, err error) GetByAuthenticationToken(token string) (user *m.User, err error) GetByResetPassToken(token string) (user *m.User, err error) Update(user *m.User) (err error) Delete(userId int64) (err error) List(limit, offset int64, orderBy, sort string) (list []*m.User, total int64, err error) SignIn(u *m.User, ipv4 string) (err error) GenResetPassToken(u *m.User) (token string, err error) ClearResetPassToken(u *m.User) (err error) ClearToken(u *m.User) (err error) // contains filtered or unexported methods }
IUser ...
type IUserMeta ¶ added in v0.5.0
type IUserMeta interface { UpdateOrCreate(meta *m.UserMeta) (id int64, err error) // contains filtered or unexported methods }
IUserMeta ...
type IVariable ¶ added in v0.5.0
type IVariable interface { Add(ver m.Variable) (err error) CreateOrUpdate(ver m.Variable) (err error) GetByName(name string) (ver m.Variable, err error) Update(variable m.Variable) (err error) Delete(name string) (err error) List(limit, offset int64, orderBy, sort string, system bool) (list []m.Variable, total int64, err error) Search(query string, limit, offset int) (list []m.Variable, total int64, err error) // contains filtered or unexported methods }
IVariable ...
type IZigbee2mqtt ¶ added in v0.5.0
type IZigbee2mqtt interface { Add(ver *m.Zigbee2mqtt) (id int64, err error) GetById(id int64) (ver *m.Zigbee2mqtt, err error) Update(ver *m.Zigbee2mqtt) (err error) Delete(id int64) (err error) List(limit, offset int64) (list []*m.Zigbee2mqtt, total int64, err error) GetByLogin(login string) (ver *m.Zigbee2mqtt, err error) // contains filtered or unexported methods }
IZigbee2mqtt ...
func GetZigbee2mqttAdaptor ¶ added in v0.1.0
func GetZigbee2mqttAdaptor(d *gorm.DB) IZigbee2mqtt
GetZigbee2mqttAdaptor ...
type IZigbee2mqttDevice ¶ added in v0.5.0
type IZigbee2mqttDevice interface { Add(ver *m.Zigbee2mqttDevice) (err error) GetById(id string) (ver *m.Zigbee2mqttDevice, err error) Update(ver *m.Zigbee2mqttDevice) (err error) Delete(id string) (err error) List(limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error) ListByBridgeId(bridgeId, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error) Search(query string, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error) // contains filtered or unexported methods }
IZigbee2mqttDevice ...
func GetZigbee2mqttDeviceAdaptor ¶ added in v0.1.0
func GetZigbee2mqttDeviceAdaptor(d *gorm.DB) IZigbee2mqttDevice
GetZigbee2mqttDeviceAdaptor ...
type Image ¶
type Image struct { IImage // contains filtered or unexported fields }
Image ...
func (*Image) AddMultiple ¶
AddMultiple ...
func (*Image) GetAllByDate ¶
GetAllByDate ...
func (*Image) GetByImageName ¶ added in v0.2.0
GetByImageName ...
func (*Image) GetFilterList ¶
func (n *Image) GetFilterList() (filterList []*m.ImageFilterList, err error)
GetFilterList ...
type Log ¶
type Log struct { ILog // contains filtered or unexported fields }
Log ...
func (*Log) AddMultiple ¶ added in v0.0.19
AddMultiple ...
func (*Log) DeleteOldest ¶ added in v0.9.3
DeleteOldest ...
type Message ¶ added in v0.0.17
type Message struct { IMessage // contains filtered or unexported fields }
Message ...
type MessageDelivery ¶ added in v0.0.17
type MessageDelivery struct {
// contains filtered or unexported fields
}
MessageDelivery ...
func (*MessageDelivery) Add ¶ added in v0.0.17
func (n *MessageDelivery) Add(msg m.MessageDelivery) (id int64, err error)
Add ...
func (*MessageDelivery) Delete ¶ added in v0.0.17
func (n *MessageDelivery) Delete(id int64) (err error)
Delete ...
func (*MessageDelivery) GetAllUncompleted ¶ added in v0.0.17
func (n *MessageDelivery) GetAllUncompleted(limit, offset int64) (list []m.MessageDelivery, total int64, err error)
GetAllUncompleted ...
func (*MessageDelivery) GetById ¶ added in v0.0.17
func (n *MessageDelivery) GetById(id int64) (ver m.MessageDelivery, err error)
GetById ...
func (*MessageDelivery) List ¶ added in v0.0.17
func (n *MessageDelivery) List(limit, offset int64, orderBy, sort string) (list []m.MessageDelivery, total int64, err error)
List ...
func (*MessageDelivery) SetStatus ¶ added in v0.0.17
func (n *MessageDelivery) SetStatus(msg m.MessageDelivery) (err error)
SetStatus ...
type Metric ¶ added in v0.5.0
type Metric struct { IMetric // contains filtered or unexported fields }
Metric ...
func (*Metric) AddMultiple ¶ added in v0.5.0
AddMultiple ...
func (*Metric) GetByIdWithData ¶ added in v0.5.0
func (n *Metric) GetByIdWithData(id int64, from, to *time.Time, metricRange *string) (metric *m.Metric, err error)
GetByIdWithData ...
func (*Metric) List ¶ added in v0.5.0
func (n *Metric) List(limit, offset int64, orderBy, sort string) (list []*m.Metric, total int64, err error)
List ...
type MetricBucket ¶ added in v0.5.0
type MetricBucket struct { IMetricBucket // contains filtered or unexported fields }
MetricBucket ...
func (*MetricBucket) Add ¶ added in v0.5.0
func (n *MetricBucket) Add(ver m.MetricDataItem) error
Add ...
func (*MetricBucket) AddMultiple ¶ added in v0.5.0
func (n *MetricBucket) AddMultiple(items []m.MetricDataItem) (err error)
AddMultiple ...
func (*MetricBucket) CreateHypertable ¶ added in v0.5.0
func (n *MetricBucket) CreateHypertable() (err error)
CreateHypertable ...
func (*MetricBucket) DeleteById ¶ added in v0.5.0
func (n *MetricBucket) DeleteById(id int64) (err error)
DeleteById ...
func (*MetricBucket) DeleteByMetricId ¶ added in v0.5.0
func (n *MetricBucket) DeleteByMetricId(metricId int64) (err error)
DeleteByMetricId ...
func (*MetricBucket) DeleteOldest ¶ added in v0.5.0
func (n *MetricBucket) DeleteOldest(days int) (err error)
DeleteOldest ...
func (*MetricBucket) Simple24HPreview ¶ added in v0.5.0
func (n *MetricBucket) Simple24HPreview(metricId int64, optionItems []string) (list []m.MetricDataItem, err error)
Simple24HPreview ...
func (*MetricBucket) SimpleListWithSoftRange ¶ added in v0.5.0
func (n *MetricBucket) SimpleListWithSoftRange(_from, _to *time.Time, metricId int64, _metricRange *string, optionItems []string) (list []m.MetricDataItem, err error)
SimpleListWithSoftRange ...
type Permission ¶
type Permission struct { IPermission // contains filtered or unexported fields }
Permission ...
func (*Permission) Add ¶
func (n *Permission) Add(permission *m.Permission) (id int64, err error)
Add ...
func (*Permission) Delete ¶
func (n *Permission) Delete(roleName, packageName string, levelName []string) (err error)
Delete ...
func (*Permission) GetAllPermissions ¶
func (n *Permission) GetAllPermissions(roleName string) (permissions []*m.Permission, err error)
GetAllPermissions ...
type Plugin ¶ added in v0.5.0
type Plugin struct { IPlugin // contains filtered or unexported fields }
Plugin ...
func (*Plugin) CreateOrUpdate ¶ added in v0.5.0
CreateOrUpdate ...
func (*Plugin) List ¶ added in v0.5.0
func (p *Plugin) List(limit, offset int64, orderBy, sort string) (list []m.Plugin, total int64, err error)
List ...
type Role ¶
type Role struct { IRole // contains filtered or unexported fields }
RoleName ...
func (*Role) GetAccessList ¶
GetAccessList ...
func (*Role) List ¶
func (n *Role) List(limit, offset int64, orderBy, sort string) (list []*m.Role, total int64, err error)
List ...
type RunHistory ¶ added in v0.5.0
type RunHistory struct { IRunHistory // contains filtered or unexported fields }
RunStory ...
func (*RunHistory) Add ¶ added in v0.5.0
func (n *RunHistory) Add(story *m.RunStory) (id int64, err error)
Add ...
type Script ¶
type Script struct { IScript // contains filtered or unexported fields }
Script ...
func (*Script) List ¶
func (n *Script) List(limit, offset int64, orderBy, sort string) (list []*m.Script, total int64, err error)
List ...
type Task ¶ added in v0.5.0
type Task struct { ITask // contains filtered or unexported fields }
Task ...
type TelegramChat ¶ added in v0.5.0
type TelegramChat struct { ITelegramChat // contains filtered or unexported fields }
TelegramChat ...
func (*TelegramChat) Add ¶ added in v0.5.0
func (p *TelegramChat) Add(plugin m.TelegramChat) (err error)
Add ...
type Template ¶ added in v0.0.17
type Template struct { ITemplate // contains filtered or unexported fields }
Template ...
func (*Template) GetItemByName ¶ added in v0.0.17
GetItemByName ...
func (*Template) GetItemsSortedList ¶ added in v0.0.17
GetItemsSortedList ...
func (*Template) GetItemsTree ¶ added in v0.0.17
func (n *Template) GetItemsTree() (tree []*m.TemplateTree, err error)
GetItemsTree ...
func (*Template) GetMarkers ¶ added in v0.0.17
GetMarkers ...
func (*Template) Render ¶ added in v0.0.17
func (n *Template) Render(name string, params map[string]interface{}) (render *m.TemplateRender, err error)
Render ...
func (*Template) Search ¶ added in v0.0.17
func (n *Template) Search(query string, limit, offset int) (list []*m.Template, total int64, err error)
Search ...
func (*Template) UpdateItemsTree ¶ added in v0.0.17
func (n *Template) UpdateItemsTree(tree []*m.TemplateTree) (err error)
UpdateItemsTree ...
func (*Template) UpdateOrCreate ¶ added in v0.0.17
UpdateOrCreate ...
type Trigger ¶ added in v0.5.0
type Trigger struct { ITrigger // contains filtered or unexported fields }
Trigger ...
func (*Trigger) AddMultiple ¶ added in v0.5.0
AddMultiple ...
func (*Trigger) DeleteByTaskId ¶ added in v0.5.0
DeleteByTaskId ...
type User ¶
type User struct { IUser // contains filtered or unexported fields }
User ...
func (*User) ClearResetPassToken ¶
ClearResetPassToken ...
func (*User) GenResetPassToken ¶
GenResetPassToken ...
func (*User) GetByAuthenticationToken ¶
GetByAuthenticationToken ...
func (*User) GetByEmail ¶
GetByEmail ...
func (*User) GetByNickname ¶ added in v0.2.0
GetByNickname ...
func (*User) GetByResetPassToken ¶
GetByResetPassToken ...
type UserMeta ¶
type UserMeta struct { IUserMeta // contains filtered or unexported fields }
UserMeta ...
type Variable ¶
type Variable struct { IVariable // contains filtered or unexported fields }
Variable ...
func (*Variable) CreateOrUpdate ¶ added in v0.5.0
CreateOrUpdate ...
func (*Variable) List ¶
func (n *Variable) List(limit, offset int64, orderBy, sort string, system bool) (list []m.Variable, total int64, err error)
List ...
type Zigbee2mqtt ¶ added in v0.1.0
type Zigbee2mqtt struct { IZigbee2mqtt // contains filtered or unexported fields }
Zigbee2mqtt ...
func (*Zigbee2mqtt) Add ¶ added in v0.1.0
func (n *Zigbee2mqtt) Add(ver *m.Zigbee2mqtt) (id int64, err error)
Add ...
func (*Zigbee2mqtt) Delete ¶ added in v0.1.0
func (n *Zigbee2mqtt) Delete(id int64) (err error)
Delete ...
func (*Zigbee2mqtt) GetById ¶ added in v0.1.0
func (n *Zigbee2mqtt) GetById(id int64) (ver *m.Zigbee2mqtt, err error)
GetById ...
func (*Zigbee2mqtt) GetByLogin ¶ added in v0.1.0
func (a *Zigbee2mqtt) GetByLogin(login string) (ver *m.Zigbee2mqtt, err error)
GetByLogin ...
func (*Zigbee2mqtt) List ¶ added in v0.1.0
func (n *Zigbee2mqtt) List(limit, offset int64) (list []*m.Zigbee2mqtt, total int64, err error)
List ...
func (*Zigbee2mqtt) Update ¶ added in v0.1.0
func (n *Zigbee2mqtt) Update(ver *m.Zigbee2mqtt) (err error)
Update ...
type Zigbee2mqttDevice ¶ added in v0.1.0
type Zigbee2mqttDevice struct { IZigbee2mqttDevice // contains filtered or unexported fields }
Zigbee2mqttDevice ...
func (*Zigbee2mqttDevice) Add ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Add(ver *m.Zigbee2mqttDevice) (err error)
Add ...
func (*Zigbee2mqttDevice) Delete ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Delete(id string) (err error)
Delete ...
func (*Zigbee2mqttDevice) GetById ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) GetById(id string) (ver *m.Zigbee2mqttDevice, err error)
GetById ...
func (*Zigbee2mqttDevice) List ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) List(limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
List ...
func (*Zigbee2mqttDevice) ListByBridgeId ¶ added in v0.5.2
func (n *Zigbee2mqttDevice) ListByBridgeId(bridgeId, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
ListByBridgeId ...
func (*Zigbee2mqttDevice) Search ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Search(query string, limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
Search ...
func (*Zigbee2mqttDevice) Update ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Update(ver *m.Zigbee2mqttDevice) (err error)
Update ...
Source Files ¶
- action.go
- adaptors.go
- alexa_intent.go
- alexa_skill.go
- area.go
- condition.go
- dashboard.go
- dashboard_card.go
- dashboard_card_item.go
- dashboard_tab.go
- entity.go
- entity_action.go
- entity_state.go
- entity_storage.go
- image.go
- log.go
- message.go
- message_delivery.go
- metric.go
- metric_bucket.go
- permissions.go
- plugin.go
- role.go
- run_hostory.go
- script.go
- task.go
- telegram_chat.go
- template.go
- trigger.go
- user.go
- usermeta.go
- variable.go
- zigbee2mqtt.go
- zigbee2mqtt_device.go