Documentation
¶
Index ¶
- type AlexaIntent
- type AlexaIntents
- type AlexaSkill
- type AlexaSkills
- func (n AlexaSkills) Add(v *AlexaSkill) (id int64, err error)
- func (n AlexaSkills) Delete(id int64) (err error)
- func (n AlexaSkills) GetById(id int64) (v *AlexaSkill, err error)
- func (n *AlexaSkills) List(limit, offset int64, orderBy, sort string) (list []*AlexaSkill, total int64, err error)
- func (n *AlexaSkills) ListEnabled(limit, offset int64) (list []*AlexaSkill, err error)
- func (n AlexaSkills) Update(v *AlexaSkill) (err error)
- type Connection
- type Connections
- func (n Connections) Add(connection *Connection) (id uuid.UUID, err error)
- func (n Connections) Delete(ids []uuid.UUID) (err error)
- func (n Connections) GetById(id uuid.UUID) (connection *Connection, err error)
- func (n *Connections) List(limit, offset int64, orderBy, sort string) (list []*Connection, total int64, err error)
- func (n Connections) Update(m *Connection) (err error)
- type Device
- type DeviceAction
- type DeviceActions
- func (n DeviceActions) Add(action *DeviceAction) (id int64, err error)
- func (n DeviceActions) Delete(actionId int64) (err error)
- func (n DeviceActions) GetByDeviceId(deviceId int64) (actions []*DeviceAction, err error)
- func (n DeviceActions) GetById(actionId int64) (action *DeviceAction, err error)
- func (n *DeviceActions) List(limit, offset int64, orderBy, sort string) (list []*DeviceAction, total int64, err error)
- func (n *DeviceActions) Search(query string, limit, offset int) (list []*DeviceAction, total int64, err error)
- func (n DeviceActions) Update(m *DeviceAction) (err error)
- type DeviceState
- type DeviceStates
- func (n DeviceStates) Add(state *DeviceState) (id int64, err error)
- func (n DeviceStates) Delete(stateId int64) (err error)
- func (n DeviceStates) GetByDeviceId(deviceId int64) (actions []*DeviceState, err error)
- func (n DeviceStates) GetById(stateId int64) (state *DeviceState, err error)
- func (n *DeviceStates) List(limit, offset int64, orderBy, sort string) (list []*DeviceState, total int64, err error)
- func (n DeviceStates) Update(m *DeviceState) (err error)
- type Devices
- func (n Devices) Add(device *Device) (id int64, err error)
- func (n Devices) Delete(deviceId int64) (err error)
- func (n *Devices) DependencyLoading(device *Device) (err error)
- func (n Devices) GetAllEnabled() (list []*Device, err error)
- func (n Devices) GetByDeviceActionId(deviceActionId int64) (device *Device, err error)
- func (n Devices) GetById(deviceId int64) (device *Device, err error)
- func (n *Devices) List(limit, offset int64, orderBy, sort string) (list []*Device, total int64, err error)
- func (n *Devices) RemoveAction(deviceId, actionId int64) (err error)
- func (n *Devices) RemoveState(deviceId, stateId int64) (err error)
- func (n *Devices) Search(query string, limit, offset int) (list []*Device, total int64, err error)
- func (n Devices) Update(m *Device) (err error)
- type Flow
- type FlowElement
- type FlowElements
- func (n FlowElements) Add(flow *FlowElement) (id uuid.UUID, err error)
- func (n FlowElements) Delete(ids []uuid.UUID) (err error)
- func (n FlowElements) GetAllEnabled() (list []*FlowElement, err error)
- func (n FlowElements) GetById(id uuid.UUID) (flow *FlowElement, err error)
- func (n *FlowElements) List(limit, offset int64, orderBy, sort string) (list []*FlowElement, total int64, err error)
- func (n FlowElements) Update(m *FlowElement) (err error)
- type FlowSubscription
- type FlowSubscriptions
- type FlowZigbee2mqttDevice
- type FlowZigbee2mqttDevices
- type Flows
- func (n Flows) Add(flow *Flow) (id int64, err error)
- func (n Flows) Delete(flowId int64) (err error)
- func (n *Flows) DependencyLoading(flow *Flow) (err error)
- func (n Flows) GetAllEnabled() (list []*Flow, err error)
- func (n Flows) GetAllEnabledByWorkflow(workflowId int64) (list []*Flow, err error)
- func (n Flows) GetById(flowId int64) (flow *Flow, err error)
- func (n *Flows) List(limit, offset int64, orderBy, sort string) (list []*Flow, total int64, err error)
- func (n *Flows) Search(query string, limit, offset int) (list []*Flow, total int64, err error)
- func (n Flows) Update(m *Flow) (err error)
- type Image
- type ImageFilterList
- type Images
- func (n Images) Add(v *Image) (id int64, err error)
- func (n Images) Delete(mapId int64) (err error)
- func (n *Images) GetAllByDate(filter string) (images []*Image, err error)
- func (n Images) GetById(mapId int64) (v *Image, err error)
- func (n Images) GetByImageName(imageName string) (v *Image, err error)
- func (n *Images) GetFilterList() (images []*ImageFilterList, err error)
- func (n *Images) List(limit, offset int64, orderBy, sort string) (list []*Image, total int64, err error)
- func (n Images) Update(m *Image) (err error)
- type Log
- type LogQuery
- type Logs
- func (n Logs) Add(v *Log) (id int64, err error)
- func (n Logs) Delete(mapId int64) (err error)
- func (n Logs) GetById(mapId int64) (v *Log, err error)
- func (n *Logs) List(limit, offset int64, orderBy, sort string, queryObj *LogQuery) (list []*Log, total int64, err error)
- func (n *Logs) Search(query string, limit, offset int) (list []*Log, total int64, err error)
- type Map
- type MapDevice
- type MapDeviceAction
- type MapDeviceActions
- func (n MapDeviceActions) Add(v *MapDeviceAction) (id int64, err error)
- func (n MapDeviceActions) Delete(mapId int64) (err error)
- func (n MapDeviceActions) GetById(mapId int64) (v *MapDeviceAction, err error)
- func (n *MapDeviceActions) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceAction, total int64, err error)
- func (n MapDeviceActions) Update(m *MapDeviceAction) (err error)
- type MapDeviceHistories
- func (m MapDeviceHistories) Add(story MapDeviceHistory) (id int64, err error)
- func (m MapDeviceHistories) List(limit, offset int) (list []*MapDeviceHistory, err error)
- func (m MapDeviceHistories) ListByDeviceId(id int64, limit, offset int) (list []*MapDeviceHistory, total int64, err error)
- func (m MapDeviceHistories) ListByElementId(id int64, limit, offset int) (list []*MapDeviceHistory, total int64, err error)
- func (m MapDeviceHistories) ListByMapId(mapId int64, limit, offset int, orderBy, sort string) (list []*MapDeviceHistory, total int64, err error)
- type MapDeviceHistory
- type MapDeviceState
- type MapDeviceStates
- func (n MapDeviceStates) Add(v *MapDeviceState) (id int64, err error)
- func (n MapDeviceStates) Delete(mapId int64) (err error)
- func (n MapDeviceStates) GetById(mapId int64) (v *MapDeviceState, err error)
- func (n *MapDeviceStates) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceState, total int64, err error)
- func (n MapDeviceStates) Update(m *MapDeviceState) (err error)
- type MapDevices
- type MapElement
- type MapElements
- func (n MapElements) Add(v *MapElement) (id int64, err error)
- func (n MapElements) Delete(mapId int64) (err error)
- func (n *MapElements) GetActiveElements(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
- func (n MapElements) GetById(mapId int64) (v *MapElement, err error)
- func (n MapElements) GetByName(name string) (v *MapElement, err error)
- func (n *MapElements) List(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
- func (n MapElements) Sort(m *MapElement) (err error)
- func (n MapElements) Update(m *MapElement) (err error)
- type MapImage
- type MapImages
- func (n MapImages) Add(v *MapImage) (id int64, err error)
- func (n MapImages) Delete(id int64) (err error)
- func (n MapImages) GetById(mapId int64) (v *MapImage, err error)
- func (n *MapImages) List(limit, offset int64, orderBy, sort string) (list []*MapImage, total int64, err error)
- func (n MapImages) Sort(m *MapImage) (err error)
- func (n MapImages) Update(m *MapImage) (err error)
- type MapLayer
- type MapLayers
- func (n MapLayers) Add(v *MapLayer) (id int64, err error)
- func (n MapLayers) Delete(mapId int64) (err error)
- func (n MapLayers) GetById(mapId int64) (v *MapLayer, err error)
- func (n *MapLayers) List(limit, offset int64, orderBy, sort string) (list []*MapLayer, total int64, err error)
- func (n MapLayers) Sort(m *MapLayer) (err error)
- func (n MapLayers) Update(m *MapLayer) (err error)
- type MapText
- type MapTexts
- func (n MapTexts) Add(v *MapText) (id int64, err error)
- func (n MapTexts) Delete(id int64) (err error)
- func (n MapTexts) GetById(mapId int64) (v *MapText, err error)
- func (n *MapTexts) List(limit, offset int64, orderBy, sort string) (list []*MapText, total int64, err error)
- func (n MapTexts) Sort(m *MapText) (err error)
- func (n MapTexts) Update(m *MapText) (err error)
- type MapZone
- type MapZones
- func (n MapZones) Add(zone *MapZone) (id int64, err error)
- func (n MapZones) Clean() (err error)
- func (n MapZones) Delete(name string) (err error)
- func (n MapZones) GetByName(zoneName string) (zone *MapZone, err error)
- func (n *MapZones) Search(query string, limit, offset int) (list []*MapZone, total int64, err error)
- type Maps
- func (n Maps) Add(v *Map) (id int64, err error)
- func (n Maps) Delete(mapId int64) (err error)
- func (n Maps) GetById(mapId int64) (v *Map, err error)
- func (n Maps) GetFullById(mapId int64) (v *Map, err error)
- func (n *Maps) List(limit, offset int64, orderBy, sort string) (list []*Map, total int64, err error)
- func (n *Maps) Search(query string, limit, offset int) (list []*Map, total int64, err error)
- func (n Maps) Update(m *Map) (err error)
- type Message
- type MessageDeliveries
- func (n MessageDeliveries) Add(msg *MessageDelivery) (id int64, err error)
- func (n MessageDeliveries) Delete(id int64) (err error)
- func (n *MessageDeliveries) GetAllUncompleted(limit, offset int64) (list []*MessageDelivery, total int64, err error)
- func (n MessageDeliveries) GetById(id int64) (msg *MessageDelivery, err error)
- func (n *MessageDeliveries) List(limit, offset int64, orderBy, sort string) (list []*MessageDelivery, total int64, err error)
- func (n MessageDeliveries) SetStatus(msg *MessageDelivery) (err error)
- type MessageDelivery
- type Messages
- type Node
- type Nodes
- func (n Nodes) Add(node *Node) (id int64, err error)
- func (n Nodes) Delete(nodeId int64) (err error)
- func (n Nodes) GetAllEnabled() (list []*Node, err error)
- func (n Nodes) GetById(nodeId int64) (node *Node, err error)
- func (n *Nodes) GetByLogin(login string) (node *Node, err error)
- func (n *Nodes) GetByName(name string) (node *Node, err error)
- func (n *Nodes) List(limit, offset int64, orderBy, sort string) (list []*Node, total int64, err error)
- func (n *Nodes) Search(query string, limit, offset int) (list []*Node, total int64, err error)
- func (n Nodes) Update(m *Node) (err error)
- type Permission
- type Permissions
- type Prototype
- type Role
- type Roles
- func (n Roles) Add(role *Role) (err error)
- func (n Roles) Delete(name string) (err error)
- func (n Roles) GetByName(name string) (role *Role, err error)
- func (n *Roles) List(limit, offset int64, orderBy, sort string) (list []*Role, total int64, err error)
- func (n *Roles) RelData(role *Role) (err error)
- func (n *Roles) Search(query string, limit, offset int) (list []*Role, total int64, err error)
- func (n Roles) Update(m *Role) (err error)
- type Script
- type Scripts
- func (n Scripts) Add(node *Script) (id int64, err error)
- func (n Scripts) Delete(nodeId int64) (err error)
- func (n Scripts) GetById(nodeId int64) (node *Script, err error)
- func (n *Scripts) List(limit, offset int64, orderBy, sort string) (list []*Script, total int64, err error)
- func (n *Scripts) Search(query string, limit, offset int) (list []*Script, total int64, err error)
- func (n Scripts) Update(m *Script) (err error)
- type Storage
- type Storages
- type Template
- type TemplateTree
- type Templates
- func (n Templates) Create(tpl *Template) error
- func (n Templates) Delete(name string) (err error)
- func (n Templates) GetByName(name, itemType string) (*Template, error)
- func (n Templates) GetItemsSortedList() (count int64, newItems []string, err error)
- func (n Templates) GetItemsTree() (tree []*TemplateTree, err error)
- func (n Templates) GetList(templateType string) ([]*Template, error)
- func (n *Templates) Search(query string, limit, offset int) (items []*Template, total int64, err error)
- func (n Templates) Update(m *Template) error
- func (n Templates) UpdateItemsTree(tree []*TemplateTree, parent string) error
- func (n Templates) UpdateOrCreate(tpl *Template) error
- func (n Templates) UpdateStatus(m *Template) error
- type User
- type UserMeta
- type UserMetas
- type Users
- func (u *Users) Add(user *User) (id int64, err error)
- func (u *Users) ClearResetPassToken(userId int64) (err error)
- func (u *Users) ClearToken(userId int64) (err error)
- func (u *Users) Delete(userId int64) (err error)
- func (u *Users) GetByAuthenticationToken(token string) (user *User, err error)
- func (u *Users) GetByEmail(email string) (user *User, err error)
- func (u *Users) GetById(userId int64) (user *User, err error)
- func (u *Users) GetByNickname(nickname string) (user *User, err error)
- func (u *Users) GetByResetPassToken(token string) (user *User, err error)
- func (n *Users) List(limit, offset int64, orderBy, sort string) (list []*User, total int64, err error)
- func (u *Users) NewResetPassToken(userId int64, token string) (err error)
- func (u *Users) Update(user *User) (err error)
- func (u *Users) UpdateAuthenticationToken(userId int64, token string) (err error)
- type Variable
- type Variables
- func (n Variables) Add(variable *Variable) (err error)
- func (n Variables) Delete(name string) (err error)
- func (n Variables) GetAllEnabled() (list []*Variable, err error)
- func (n Variables) GetByName(name string) (variable *Variable, err error)
- func (n *Variables) List(limit, offset int64, orderBy, sort string) (list []*Variable, total int64, err error)
- func (n Variables) Update(m *Variable) (err error)
- type Worker
- type Workers
- func (n Workers) Add(worker *Worker) (id int64, err error)
- func (n Workers) Delete(ids []int64) (err error)
- func (n Workers) GetAllEnabled() (list []*Worker, err error)
- func (n Workers) GetById(workerId int64) (worker *Worker, err error)
- func (n *Workers) List(limit, offset int64, orderBy, sort string) (list []*Worker, total int64, err error)
- func (n Workers) Update(m *Worker) (err error)
- type Workflow
- type WorkflowScenario
- type WorkflowScenarioScript
- type WorkflowScenarioScripts
- func (n WorkflowScenarioScripts) Add(scenario *WorkflowScenarioScript) (id int64, err error)
- func (n WorkflowScenarioScripts) Delete(workflowId int64) (err error)
- func (n *WorkflowScenarioScripts) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenarioScript, total int64, err error)
- type WorkflowScenarios
- func (n WorkflowScenarios) Add(scenario *WorkflowScenario) (id int64, err error)
- func (n *WorkflowScenarios) AddScript(workflowScenarioId, scriptId int64) (err error)
- func (n WorkflowScenarios) Delete(workflowId int64) (err error)
- func (n *WorkflowScenarios) DependencyLoading(scenario *WorkflowScenario) (err error)
- func (n WorkflowScenarios) GetById(scenarioId int64) (scenario *WorkflowScenario, err error)
- func (n *WorkflowScenarios) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenario, total int64, err error)
- func (n *WorkflowScenarios) ListByWorkflow(workflowId int64) (list []*WorkflowScenario, total int64, err error)
- func (n *WorkflowScenarios) RemoveScript(workflowScenarioId, scriptId int64) (err error)
- func (n *WorkflowScenarios) Search(query string, workflowId, limit, offset int) (list []*WorkflowScenario, total int64, err error)
- func (n WorkflowScenarios) Update(m *WorkflowScenario) (err error)
- type WorkflowScripts
- type Workflows
- func (n Workflows) Add(workflow *Workflow) (id int64, err error)
- func (n *Workflows) AddScript(workflowId, scriptId int64) (err error)
- func (n Workflows) Delete(workflowId int64) (err error)
- func (n *Workflows) DependencyLoading(workflow *Workflow) (err error)
- func (n Workflows) GetAllEnabled() (list []*Workflow, err error)
- func (n Workflows) GetById(workflowId int64) (workflow *Workflow, err error)
- func (n Workflows) GetByWorkflowScenarioId(workflowScenarioId int64) (workflow *Workflow, err error)
- func (n *Workflows) List(limit, offset int64, orderBy, sort string, onlyEnabled bool) (list []*Workflow, total int64, err error)
- func (n *Workflows) RemoveScript(workflowId, scriptId int64) (err error)
- func (n *Workflows) Search(query string, limit, offset int) (list []*Workflow, total int64, err error)
- func (n *Workflows) SetScenario(workflowId int64, scenarioId *int64) (err error)
- func (n Workflows) Update(m *Workflow) (err error)
- type Zigbee2mqtt
- type Zigbee2mqttDevice
- type Zigbee2mqttDevices
- func (z Zigbee2mqttDevices) Add(v *Zigbee2mqttDevice) (err error)
- func (z Zigbee2mqttDevices) Delete(id string) (err error)
- func (z Zigbee2mqttDevices) GetById(id string) (v *Zigbee2mqttDevice, err error)
- func (z *Zigbee2mqttDevices) List(limit, offset int64) (list []*Zigbee2mqttDevice, total int64, err error)
- func (z *Zigbee2mqttDevices) Search(query string, limit, offset int) (list []*Zigbee2mqttDevice, total int64, err error)
- func (z Zigbee2mqttDevices) Update(m *Zigbee2mqttDevice) (err error)
- type Zigbee2mqtts
- func (z Zigbee2mqtts) Add(v *Zigbee2mqtt) (id int64, err error)
- func (z Zigbee2mqtts) Delete(id int64) (err error)
- func (z Zigbee2mqtts) GetById(id int64) (v *Zigbee2mqtt, err error)
- func (z *Zigbee2mqtts) GetByLogin(login string) (bridge *Zigbee2mqtt, err error)
- func (z *Zigbee2mqtts) List(limit, offset int64) (list []*Zigbee2mqtt, total int64, err error)
- func (z Zigbee2mqtts) Update(m *Zigbee2mqtt) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlexaIntent ¶ added in v0.3.0
type AlexaIntent struct {
Name string `gorm:"primary_key"`
AlexaSkill *AlexaSkill
AlexaSkillId int64
Script *Script
ScriptId int64
Description string
CreatedAt time.Time
UpdatedAt time.Time
}
AlexaIntent ...
func (*AlexaIntent) TableName ¶ added in v0.3.0
func (d *AlexaIntent) TableName() string
TableName ...
type AlexaIntents ¶ added in v0.3.0
AlexaIntents ...
func (AlexaIntents) Add ¶ added in v0.3.0
func (n AlexaIntents) Add(v *AlexaIntent) (id int64, err error)
Add ...
func (AlexaIntents) Delete ¶ added in v0.3.0
func (n AlexaIntents) Delete(v *AlexaIntent) (err error)
Delete ...
func (AlexaIntents) GetByName ¶ added in v0.3.0
func (n AlexaIntents) GetByName(name string) (intent *AlexaIntent, err error)
GetByName ...
func (AlexaIntents) Update ¶ added in v0.3.0
func (n AlexaIntents) Update(v *AlexaIntent) (err error)
Update ...
type AlexaSkill ¶ added in v0.3.0
type AlexaSkill struct {
Id int64 `gorm:"primary_key"`
SkillId string
Description string
Intents []*AlexaIntent `gorm:"foreignkey:AlexaSkillId"`
Status common.StatusType
OnLaunchScript *Script `gorm:"foreignkey:OnLaunchScriptId"`
OnLaunchScriptId *int64 `gorm:"column:on_launch"`
OnSessionEndScript *Script
OnSessionEndScriptId *int64 `gorm:"column:on_session_end"`
CreatedAt time.Time
UpdatedAt time.Time
}
AlexaSkill ...
func (*AlexaSkill) TableName ¶ added in v0.3.0
func (d *AlexaSkill) TableName() string
TableName ...
type AlexaSkills ¶ added in v0.3.0
AlexaSkills ...
func (AlexaSkills) Add ¶ added in v0.3.0
func (n AlexaSkills) Add(v *AlexaSkill) (id int64, err error)
Add ...
func (AlexaSkills) Delete ¶ added in v0.3.0
func (n AlexaSkills) Delete(id int64) (err error)
Delete ...
func (AlexaSkills) GetById ¶ added in v0.3.0
func (n AlexaSkills) GetById(id int64) (v *AlexaSkill, err error)
GetById ...
func (*AlexaSkills) List ¶ added in v0.3.0
func (n *AlexaSkills) List(limit, offset int64, orderBy, sort string) (list []*AlexaSkill, total int64, err error)
List ...
func (*AlexaSkills) ListEnabled ¶ added in v0.3.0
func (n *AlexaSkills) ListEnabled(limit, offset int64) (list []*AlexaSkill, err error)
ListEnabled ...
func (AlexaSkills) Update ¶ added in v0.3.0
func (n AlexaSkills) Update(v *AlexaSkill) (err error)
Update ...
type Connection ¶
type Connection struct {
Uuid uuid.UUID `gorm:"primary_key"`
Name string
ElementFrom uuid.UUID
ElementTo uuid.UUID
PointFrom int64
PointTo int64
Flow *Flow
FlowId int64
Direction string
GraphSettings json.RawMessage `gorm:"type:jsonb;not null"`
CreatedAt time.Time
UpdatedAt time.Time
}
Connection ...
type Connections ¶
Connections ...
func (Connections) Add ¶
func (n Connections) Add(connection *Connection) (id uuid.UUID, err error)
Add ...
func (Connections) GetById ¶
func (n Connections) GetById(id uuid.UUID) (connection *Connection, err error)
GetById ...
func (*Connections) List ¶
func (n *Connections) List(limit, offset int64, orderBy, sort string) (list []*Connection, total int64, err error)
List ...
type Device ¶
type Device struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Device *Device `gorm:"foreignkey:DeviceId"`
DeviceId sql.NullInt64
Node *Node
NodeId sql.NullInt64
Status string
Type common.DeviceType
Properties json.RawMessage `gorm:"type:jsonb;not null"`
States []*DeviceState
Actions []*DeviceAction
Devices []*Device
IsGroup bool
CreatedAt time.Time
UpdatedAt time.Time
}
Device ...
type DeviceAction ¶
type DeviceAction struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Device *Device
DeviceId int64 `gorm:"column:device_id"`
Script *Script
ScriptId int64
CreatedAt time.Time
UpdatedAt time.Time
}
DeviceAction ...
type DeviceActions ¶
DeviceActions ...
func (DeviceActions) Add ¶
func (n DeviceActions) Add(action *DeviceAction) (id int64, err error)
Add ...
func (DeviceActions) GetByDeviceId ¶
func (n DeviceActions) GetByDeviceId(deviceId int64) (actions []*DeviceAction, err error)
GetByDeviceId ...
func (DeviceActions) GetById ¶
func (n DeviceActions) GetById(actionId int64) (action *DeviceAction, err error)
GetById ...
func (*DeviceActions) List ¶
func (n *DeviceActions) List(limit, offset int64, orderBy, sort string) (list []*DeviceAction, total int64, err error)
List ...
func (*DeviceActions) Search ¶
func (n *DeviceActions) Search(query string, limit, offset int) (list []*DeviceAction, total int64, err error)
Search ...
type DeviceState ¶
type DeviceState struct {
Id int64 `gorm:"primary_key"`
Device *Device
DeviceId int64 `gorm:"column:device_id"`
Description string
SystemName string
CreatedAt time.Time
UpdatedAt time.Time
}
DeviceState ...
type DeviceStates ¶
DeviceStates ...
func (DeviceStates) Add ¶
func (n DeviceStates) Add(state *DeviceState) (id int64, err error)
Add ...
func (DeviceStates) GetByDeviceId ¶
func (n DeviceStates) GetByDeviceId(deviceId int64) (actions []*DeviceState, err error)
GetByDeviceId ...
func (DeviceStates) GetById ¶
func (n DeviceStates) GetById(stateId int64) (state *DeviceState, err error)
GetById ...
func (*DeviceStates) List ¶
func (n *DeviceStates) List(limit, offset int64, orderBy, sort string) (list []*DeviceState, total int64, err error)
List ...
type Devices ¶
Devices ...
func (*Devices) DependencyLoading ¶
DependencyLoading ...
func (Devices) GetAllEnabled ¶
GetAllEnabled ...
func (Devices) GetByDeviceActionId ¶ added in v0.3.0
GetByDeviceActionId ...
func (*Devices) List ¶
func (n *Devices) List(limit, offset int64, orderBy, sort string) (list []*Device, total int64, err error)
List ...
func (*Devices) RemoveAction ¶
RemoveAction ...
func (*Devices) RemoveState ¶
RemoveState ...
type Flow ¶
type Flow struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Status StatusType
Workflow *Workflow
WorkflowId int64
WorkflowScenarioId int64
Connections []*Connection
FlowElements []*FlowElement
Workers []*Worker
Subscriptions []*FlowSubscription
Zigbee2mqttDevices []*Zigbee2mqttDevice
CreatedAt time.Time
UpdatedAt time.Time
}
Flow ...
type FlowElement ¶
type FlowElement struct {
Uuid uuid.UUID `gorm:"primary_key"`
Name string
Description string
Flow *Flow
FlowId int64
Script *Script
ScriptId *int64
Status StatusType
FlowLink *int64
PrototypeType FlowElementsPrototypeType
GraphSettings json.RawMessage `gorm:"type:jsonb;not null"`
CreatedAt time.Time
UpdatedAt time.Time
}
FlowElement ...
type FlowElements ¶
FlowElements ...
func (FlowElements) Add ¶
func (n FlowElements) Add(flow *FlowElement) (id uuid.UUID, err error)
Add ...
func (FlowElements) GetAllEnabled ¶
func (n FlowElements) GetAllEnabled() (list []*FlowElement, err error)
GetAllEnabled ...
func (FlowElements) GetById ¶
func (n FlowElements) GetById(id uuid.UUID) (flow *FlowElement, err error)
GetById ...
func (*FlowElements) List ¶
func (n *FlowElements) List(limit, offset int64, orderBy, sort string) (list []*FlowElement, total int64, err error)
List ...
type FlowSubscription ¶ added in v0.0.21
type FlowSubscription struct {
Id int64 `gorm:"primary_key"`
Flow *Flow
FlowId int64
Topic string
CreatedAt time.Time
}
FlowSubscription ...
func (*FlowSubscription) TableName ¶ added in v0.0.21
func (d *FlowSubscription) TableName() string
TableName ...
type FlowSubscriptions ¶ added in v0.0.21
type FlowSubscriptions struct {
// contains filtered or unexported fields
}
FlowSubscriptions ...
func NewFlowSubscriptions ¶ added in v0.0.21
func NewFlowSubscriptions(db *gorm.DB) *FlowSubscriptions
NewFlowSubscriptions ...
func (*FlowSubscriptions) Add ¶ added in v0.0.21
func (f *FlowSubscriptions) Add(sub *FlowSubscription) (err error)
Add ...
func (*FlowSubscriptions) Delete ¶ added in v0.0.21
func (f *FlowSubscriptions) Delete(ids []int64) (err error)
Delete ...
type FlowZigbee2mqttDevice ¶ added in v0.1.0
type FlowZigbee2mqttDevice struct {
Id int64 `gorm:"primary_key"`
Flow *Flow
FlowId int64
Zigbee2mqttDevice *Zigbee2mqttDevice
Zigbee2mqttDeviceId string
CreatedAt time.Time
}
FlowZigbee2mqttDevice ...
func (*FlowZigbee2mqttDevice) TableName ¶ added in v0.1.0
func (d *FlowZigbee2mqttDevice) TableName() string
TableName ...
type FlowZigbee2mqttDevices ¶ added in v0.1.0
type FlowZigbee2mqttDevices struct {
// contains filtered or unexported fields
}
FlowZigbee2mqttDevices ...
func NewFlowZigbee2mqttDevices ¶ added in v0.1.0
func NewFlowZigbee2mqttDevices(db *gorm.DB) *FlowZigbee2mqttDevices
NewFlowZigbee2mqttDevices ...
func (*FlowZigbee2mqttDevices) Add ¶ added in v0.1.0
func (f *FlowZigbee2mqttDevices) Add(sub *FlowZigbee2mqttDevice) (err error)
Add ...
type Flows ¶
Flows ...
func (*Flows) DependencyLoading ¶
DependencyLoading ...
func (Flows) GetAllEnabled ¶
GetAllEnabled ...
func (Flows) GetAllEnabledByWorkflow ¶
GetAllEnabledByWorkflow ...
func (*Flows) List ¶
func (n *Flows) List(limit, offset int64, orderBy, sort string) (list []*Flow, total int64, err error)
List ...
type Image ¶
type Image struct {
Id int64 `gorm:"primary_key"`
Thumb string
Image string
MimeType string
Title string
Size int64
Name string
CreatedAt time.Time
}
Image ...
type ImageFilterList ¶
ImageFilterList ...
type Images ¶
Images ...
func (*Images) GetAllByDate ¶
GetAllByDate ...
func (Images) GetByImageName ¶ added in v0.2.0
GetByImageName ...
func (*Images) GetFilterList ¶
func (n *Images) GetFilterList() (images []*ImageFilterList, err error)
GetFilterList ...
type Log ¶
type Log struct {
Id int64 `gorm:"primary_key"`
Body string
Level common.LogLevel
CreatedAt time.Time
}
Log ...
type LogQuery ¶
type LogQuery struct {
StartDate *time.Time `json:"start_date"`
EndDate *time.Time `json:"end_date"`
Levels []string `json:"levels"`
}
LogQuery ...
type Logs ¶
Logs ...
type Map ¶
type Map struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Options json.RawMessage `gorm:"type:jsonb;not null"`
Layers []*MapLayer
CreatedAt time.Time
UpdatedAt time.Time
}
Map ...
type MapDevice ¶
type MapDevice struct {
Id int64 `gorm:"primary_key"`
Image *Image
ImageId int64
Device *Device
DeviceId int64
States []*MapDeviceState
Actions []*MapDeviceAction
CreatedAt time.Time
UpdatedAt time.Time
}
MapDevice ...
type MapDeviceAction ¶
type MapDeviceAction struct {
Id int64 `gorm:"primary_key"`
DeviceAction *DeviceAction
DeviceActionId int64
MapDevice *MapDevice
MapDeviceId int64
Image *Image
ImageId int64
Type string
CreatedAt time.Time
UpdatedAt time.Time
}
MapDeviceAction ...
type MapDeviceActions ¶
MapDeviceActions ...
func (MapDeviceActions) Add ¶
func (n MapDeviceActions) Add(v *MapDeviceAction) (id int64, err error)
Add ...
func (MapDeviceActions) Delete ¶
func (n MapDeviceActions) Delete(mapId int64) (err error)
Delete ...
func (MapDeviceActions) GetById ¶
func (n MapDeviceActions) GetById(mapId int64) (v *MapDeviceAction, err error)
GetById ...
func (*MapDeviceActions) List ¶
func (n *MapDeviceActions) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceAction, total int64, err error)
List ...
func (MapDeviceActions) Update ¶
func (n MapDeviceActions) Update(m *MapDeviceAction) (err error)
Update ...
type MapDeviceHistories ¶ added in v0.2.0
MapDeviceHistories ...
func (MapDeviceHistories) Add ¶ added in v0.2.0
func (m MapDeviceHistories) Add(story MapDeviceHistory) (id int64, err error)
Add ...
func (MapDeviceHistories) List ¶ added in v0.2.0
func (m MapDeviceHistories) List(limit, offset int) (list []*MapDeviceHistory, err error)
List ...
func (MapDeviceHistories) ListByDeviceId ¶ added in v0.2.0
func (m MapDeviceHistories) ListByDeviceId(id int64, limit, offset int) (list []*MapDeviceHistory, total int64, err error)
ListByDeviceId ...
func (MapDeviceHistories) ListByElementId ¶ added in v0.2.0
func (m MapDeviceHistories) ListByElementId(id int64, limit, offset int) (list []*MapDeviceHistory, total int64, err error)
ListByElementId ...
func (MapDeviceHistories) ListByMapId ¶ added in v0.2.0
func (m MapDeviceHistories) ListByMapId(mapId int64, limit, offset int, orderBy, sort string) (list []*MapDeviceHistory, total int64, err error)
ListByMapId ...
type MapDeviceHistory ¶ added in v0.2.0
type MapDeviceHistory struct {
Id int64 `gorm:"primary_key"`
MapDevice *MapDevice
MapDeviceId int64
MapElement *MapElement
MapElementId int64
LogLevel common.LogLevel
Type common.MapDeviceHistoryType
Description string
CreatedAt time.Time
}
MapDeviceHistory ...
func (*MapDeviceHistory) TableName ¶ added in v0.2.0
func (d *MapDeviceHistory) TableName() string
TableName ...
type MapDeviceState ¶
type MapDeviceState struct {
Id int64 `gorm:"primary_key"`
DeviceState *DeviceState
DeviceStateId int64
MapDevice *MapDevice
MapDeviceId int64
Image *Image
ImageId int64
Style string
CreatedAt time.Time
UpdatedAt time.Time
}
MapDeviceState ...
type MapDeviceStates ¶
MapDeviceStates ...
func (MapDeviceStates) Add ¶
func (n MapDeviceStates) Add(v *MapDeviceState) (id int64, err error)
Add ...
func (MapDeviceStates) GetById ¶
func (n MapDeviceStates) GetById(mapId int64) (v *MapDeviceState, err error)
GetById ...
func (*MapDeviceStates) List ¶
func (n *MapDeviceStates) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceState, total int64, err error)
List ...
func (MapDeviceStates) Update ¶
func (n MapDeviceStates) Update(m *MapDeviceState) (err error)
Update ...
type MapDevices ¶
MapDevices ...
type MapElement ¶
type MapElement struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
PrototypeId int64
PrototypeType PrototypeType
Prototype Prototype
Map *Map
MapId int64
MapLayer *MapLayer
MapLayerId int64
GraphSettings json.RawMessage `gorm:"type:jsonb;not null"`
Status StatusType
Weight int64
ZoneId *int64
Zone *MapZone
CreatedAt time.Time
UpdatedAt time.Time
}
MapElement ...
type MapElements ¶
MapElements ...
func (*MapElements) GetActiveElements ¶ added in v0.0.14
func (n *MapElements) GetActiveElements(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
GetActiveElements ...
func (MapElements) GetById ¶
func (n MapElements) GetById(mapId int64) (v *MapElement, err error)
GetById ...
func (MapElements) GetByName ¶ added in v0.2.0
func (n MapElements) GetByName(name string) (v *MapElement, err error)
GetByName ...
func (*MapElements) List ¶
func (n *MapElements) List(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
List ...
type MapImages ¶
MapImages ...
type MapLayer ¶
type MapLayer struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Map *Map
MapId int64
Status string
Weight int64
Elements []*MapElement
CreatedAt time.Time
UpdatedAt time.Time
}
MapLayer ...
type MapLayers ¶
MapLayers ...
type MapTexts ¶
MapTexts ...
type MapZones ¶ added in v0.0.14
MapZones ...
type Maps ¶
Maps ...
func (Maps) GetFullById ¶
GetFullById ...
func (*Maps) List ¶
func (n *Maps) List(limit, offset int64, orderBy, sort string) (list []*Map, total int64, err error)
List ...
type Message ¶ added in v0.0.17
type Message struct {
Id int64 `gorm:"primary_key"`
Type string
EmailFrom *string
EmailSubject *string
EmailBody *string
SmsText *string
SlackText *string
UiText *string
TelegramText *string
Statuses []*MessageDelivery
CreatedAt time.Time
UpdatedAt time.Time
}
Message ...
type MessageDeliveries ¶ added in v0.0.17
MessageDeliveries ...
func (MessageDeliveries) Add ¶ added in v0.0.17
func (n MessageDeliveries) Add(msg *MessageDelivery) (id int64, err error)
Add ...
func (MessageDeliveries) Delete ¶ added in v0.0.17
func (n MessageDeliveries) Delete(id int64) (err error)
Delete ...
func (*MessageDeliveries) GetAllUncompleted ¶ added in v0.0.17
func (n *MessageDeliveries) GetAllUncompleted(limit, offset int64) (list []*MessageDelivery, total int64, err error)
GetAllUncompleted ...
func (MessageDeliveries) GetById ¶ added in v0.0.17
func (n MessageDeliveries) GetById(id int64) (msg *MessageDelivery, err error)
GetById ...
func (*MessageDeliveries) List ¶ added in v0.0.17
func (n *MessageDeliveries) List(limit, offset int64, orderBy, sort string) (list []*MessageDelivery, total int64, err error)
List ...
func (MessageDeliveries) SetStatus ¶ added in v0.0.17
func (n MessageDeliveries) SetStatus(msg *MessageDelivery) (err error)
SetStatus ...
type MessageDelivery ¶ added in v0.0.17
type MessageDelivery struct {
Id int64 `gorm:"primary_key"`
Message *Message
MessageId int64
Address string
Status string
ErrorMessageStatus *string `gorm:"column:error_system_code"`
ErrorMessageBody *string `gorm:"column:error_system_message"`
CreatedAt time.Time
UpdatedAt time.Time
}
MessageDelivery ...
func (*MessageDelivery) TableName ¶ added in v0.0.17
func (d *MessageDelivery) TableName() string
TableName ...
type Node ¶
type Node struct {
Id int64 `gorm:"primary_key"`
Name string
Status string
Description string
Login string
EncryptedPassword string
CreatedAt time.Time
UpdatedAt time.Time
}
Node ...
type Nodes ¶
Nodes ...
func (Nodes) GetAllEnabled ¶
GetAllEnabled ...
func (*Nodes) GetByLogin ¶
GetByLogin ...
func (*Nodes) List ¶
func (n *Nodes) List(limit, offset int64, orderBy, sort string) (list []*Node, total int64, err error)
List ...
type Permission ¶
type Permission struct {
Id int64 `gorm:"primary_key"`
Role *Role `gorm:"foreignkey:RoleName"`
RoleName string
PackageName string
LevelName string
}
Permission ...
type Permissions ¶
Permissions ...
func (Permissions) Add ¶
func (n Permissions) Add(permission *Permission) (id int64, err error)
Add ...
func (Permissions) Delete ¶
func (n Permissions) Delete(packageName string, levelName []string) (err error)
Delete ...
func (Permissions) GetAllPermissions ¶
func (n Permissions) GetAllPermissions(name string) (permissions []*Permission, err error)
GetAllPermissions ...
type Role ¶
type Role struct {
Name string `gorm:"primary_key"`
Description string
Role *Role
RoleName sql.NullString `gorm:"column:parent"`
Children []*Role
Permissions []*Permission
CreatedAt time.Time
UpdatedAt time.Time
}
Role ...
type Roles ¶
Roles ...
func (*Roles) List ¶
func (n *Roles) List(limit, offset int64, orderBy, sort string) (list []*Role, total int64, err error)
List ...
type Script ¶
type Script struct {
Id int64 `gorm:"primary_key"`
Lang ScriptLang
Name string
Source string
Description string
Compiled string
CreatedAt time.Time
UpdatedAt time.Time
}
Script ...
type Scripts ¶
Scripts ...
func (*Scripts) List ¶
func (n *Scripts) List(limit, offset int64, orderBy, sort string) (list []*Script, total int64, err error)
List ...
type Storage ¶ added in v0.4.0
type Storage struct {
Name string `gorm:"primary_key"`
Value json.RawMessage `gorm:"type:jsonb;not null"`
UpdatedAt time.Time
CreatedAt time.Time
}
Storage ...
type Storages ¶ added in v0.4.0
Storages ...
func (*Storages) CreateOrUpdate ¶ added in v0.4.0
CreateOrUpdate ...
type Template ¶ added in v0.0.17
type Template struct {
Name string `gorm:"primary_key"`
Description string
Content string
Status string
Type string
ParentName *string `gorm:"column:parent"`
CreatedAt time.Time
UpdatedAt time.Time
}
Template ...
type TemplateTree ¶ added in v0.0.17
type TemplateTree struct {
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
Nodes []*TemplateTree `json:"nodes"`
}
TemplateTree ...
type Templates ¶ added in v0.0.17
Templates ...
func (Templates) GetItemsSortedList ¶ added in v0.0.17
GetItemsSortedList ...
func (Templates) GetItemsTree ¶ added in v0.0.17
func (n Templates) GetItemsTree() (tree []*TemplateTree, err error)
GetItemsTree ...
func (*Templates) Search ¶ added in v0.0.17
func (n *Templates) Search(query string, limit, offset int) (items []*Template, total int64, err error)
Search ...
func (Templates) UpdateItemsTree ¶ added in v0.0.17
func (n Templates) UpdateItemsTree(tree []*TemplateTree, parent string) error
UpdateItemsTree ...
func (Templates) UpdateOrCreate ¶ added in v0.0.17
UpdateOrCreate ...
func (Templates) UpdateStatus ¶ added in v0.0.17
UpdateStatus ...
type User ¶
type User struct {
Id int64 `gorm:"primary_key"`
Nickname string
FirstName string
LastName string
EncryptedPassword string
Email string
Status string
ResetPasswordToken string
AuthenticationToken *string
Image *Image
ImageId sql.NullInt64
SignInCount int64
CurrentSignInIp string
LastSignInIp string
Lang string
User *User
UserId sql.NullInt64
Role *Role
RoleName string
Meta []*UserMeta
ResetPasswordSentAt *time.Time
CurrentSignInAt *time.Time
LastSignInAt *time.Time
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time
History json.RawMessage `gorm:"type:jsonb;not null"`
}
User ...
type Users ¶
Users ...
func (*Users) ClearResetPassToken ¶
ClearResetPassToken ...
func (*Users) GetByAuthenticationToken ¶
GetByAuthenticationToken ...
func (*Users) GetByEmail ¶
GetByEmail ...
func (*Users) GetByNickname ¶ added in v0.2.0
GetByNickname ...
func (*Users) GetByResetPassToken ¶
GetByResetPassToken ...
func (*Users) List ¶
func (n *Users) List(limit, offset int64, orderBy, sort string) (list []*User, total int64, err error)
List ...
func (*Users) NewResetPassToken ¶
NewResetPassToken ...
type Variable ¶
type Variable struct {
Name string `gorm:"primary_key"`
Value string
Autoload bool
CreatedAt time.Time
UpdatedAt time.Time
}
Variable ...
type Variables ¶
Variables ...
func (Variables) GetAllEnabled ¶
GetAllEnabled ...
type Worker ¶
type Worker struct {
Id int64 `gorm:"primary_key"`
Workflow *Workflow
WorkflowId int64
DeviceAction *DeviceAction
DeviceActionId int64
Flow *Flow
FlowId int64
Status string
Name string
Time string
CreatedAt time.Time
UpdatedAt time.Time
}
Worker ...
type Workers ¶
Workers ...
func (Workers) GetAllEnabled ¶
GetAllEnabled ...
type Workflow ¶
type Workflow struct {
Id int64 `gorm:"primary_key"`
Name string
Description string
Status string
WorkflowScenarioId *int64
WorkflowScenario *WorkflowScenario
Scenarios []*WorkflowScenario
Scripts []*Script
CreatedAt time.Time
UpdatedAt time.Time
}
Workflow ...
type WorkflowScenario ¶
type WorkflowScenario struct {
Id int64 `gorm:"primary_key"`
Name string
SystemName string
WorkflowId int64
Scripts []*Script
CreatedAt time.Time
UpdatedAt time.Time
}
WorkflowScenario ...
type WorkflowScenarioScript ¶
type WorkflowScenarioScript struct {
Id int64 `gorm:"primary_key"`
ScriptId int64
WorkflowScenarioId int64
}
WorkflowScenarioScript ...
func (*WorkflowScenarioScript) TableName ¶
func (d *WorkflowScenarioScript) TableName() string
TableName ...
type WorkflowScenarioScripts ¶
WorkflowScenarioScripts ...
func (WorkflowScenarioScripts) Add ¶
func (n WorkflowScenarioScripts) Add(scenario *WorkflowScenarioScript) (id int64, err error)
Add ...
func (WorkflowScenarioScripts) Delete ¶
func (n WorkflowScenarioScripts) Delete(workflowId int64) (err error)
Delete ...
func (*WorkflowScenarioScripts) List ¶
func (n *WorkflowScenarioScripts) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenarioScript, total int64, err error)
List ...
type WorkflowScenarios ¶
WorkflowScenarios ...
func (WorkflowScenarios) Add ¶
func (n WorkflowScenarios) Add(scenario *WorkflowScenario) (id int64, err error)
Add ...
func (*WorkflowScenarios) AddScript ¶
func (n *WorkflowScenarios) AddScript(workflowScenarioId, scriptId int64) (err error)
AddScript ...
func (WorkflowScenarios) Delete ¶
func (n WorkflowScenarios) Delete(workflowId int64) (err error)
Delete ...
func (*WorkflowScenarios) DependencyLoading ¶
func (n *WorkflowScenarios) DependencyLoading(scenario *WorkflowScenario) (err error)
DependencyLoading ...
func (WorkflowScenarios) GetById ¶
func (n WorkflowScenarios) GetById(scenarioId int64) (scenario *WorkflowScenario, err error)
GetById ...
func (*WorkflowScenarios) List ¶
func (n *WorkflowScenarios) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenario, total int64, err error)
List ...
func (*WorkflowScenarios) ListByWorkflow ¶
func (n *WorkflowScenarios) ListByWorkflow(workflowId int64) (list []*WorkflowScenario, total int64, err error)
ListByWorkflow ...
func (*WorkflowScenarios) RemoveScript ¶
func (n *WorkflowScenarios) RemoveScript(workflowScenarioId, scriptId int64) (err error)
RemoveScript ...
func (*WorkflowScenarios) Search ¶
func (n *WorkflowScenarios) Search(query string, workflowId, limit, offset int) (list []*WorkflowScenario, total int64, err error)
Search ...
func (WorkflowScenarios) Update ¶
func (n WorkflowScenarios) Update(m *WorkflowScenario) (err error)
Update ...
type WorkflowScripts ¶
type WorkflowScripts struct {
Id int64 `gorm:"primary_key"`
Workflow *Workflow
WorkflowId int64
Script *Script
ScriptId int64
Weight int64
}
WorkflowScripts ...
type Workflows ¶
Workflows ...
func (*Workflows) DependencyLoading ¶
DependencyLoading ...
func (Workflows) GetAllEnabled ¶
GetAllEnabled ...
func (Workflows) GetByWorkflowScenarioId ¶ added in v0.0.25
func (n Workflows) GetByWorkflowScenarioId(workflowScenarioId int64) (workflow *Workflow, err error)
GetByWorkflowScenarioId ...
func (*Workflows) List ¶
func (n *Workflows) List(limit, offset int64, orderBy, sort string, onlyEnabled bool) (list []*Workflow, total int64, err error)
List ...
func (*Workflows) RemoveScript ¶
RemoveScript ...
func (*Workflows) Search ¶
func (n *Workflows) Search(query string, limit, offset int) (list []*Workflow, total int64, err error)
Search ...
func (*Workflows) SetScenario ¶
SetScenario ...
type Zigbee2mqtt ¶ added in v0.1.0
type Zigbee2mqtt struct {
Id int64 `gorm:"primary_key"`
Name string
Login string
Devices []*Zigbee2mqttDevice
EncryptedPassword string
PermitJoin bool
BaseTopic string
CreatedAt time.Time
UpdatedAt time.Time
}
Zigbee2mqtt ...
func (*Zigbee2mqtt) TableName ¶ added in v0.1.0
func (m *Zigbee2mqtt) TableName() string
TableName ...
type Zigbee2mqttDevice ¶ added in v0.1.0
type Zigbee2mqttDevice struct {
Id string `gorm:"primary_key"`
Zigbee2mqtt *Zigbee2mqtt
Zigbee2mqttId int64
Name string
Type string
Model string
Description string
Manufacturer string
Status string
Functions pq.StringArray `gorm:"type:varchar(100)[]"`
CreatedAt time.Time
UpdatedAt time.Time
}
Zigbee2mqttDevice ...
func (*Zigbee2mqttDevice) TableName ¶ added in v0.1.0
func (m *Zigbee2mqttDevice) TableName() string
TableName ...
type Zigbee2mqttDevices ¶ added in v0.1.0
Zigbee2mqttDevices ...
func (Zigbee2mqttDevices) Add ¶ added in v0.1.0
func (z Zigbee2mqttDevices) Add(v *Zigbee2mqttDevice) (err error)
Add ...
func (Zigbee2mqttDevices) Delete ¶ added in v0.1.0
func (z Zigbee2mqttDevices) Delete(id string) (err error)
Delete ...
func (Zigbee2mqttDevices) GetById ¶ added in v0.1.0
func (z Zigbee2mqttDevices) GetById(id string) (v *Zigbee2mqttDevice, err error)
GetById ...
func (*Zigbee2mqttDevices) List ¶ added in v0.1.0
func (z *Zigbee2mqttDevices) List(limit, offset int64) (list []*Zigbee2mqttDevice, total int64, err error)
List ...
func (*Zigbee2mqttDevices) Search ¶ added in v0.1.0
func (z *Zigbee2mqttDevices) Search(query string, limit, offset int) (list []*Zigbee2mqttDevice, total int64, err error)
Search ...
func (Zigbee2mqttDevices) Update ¶ added in v0.1.0
func (z Zigbee2mqttDevices) Update(m *Zigbee2mqttDevice) (err error)
Update ...
type Zigbee2mqtts ¶ added in v0.1.0
Zigbee2mqtts ...
func (Zigbee2mqtts) Add ¶ added in v0.1.0
func (z Zigbee2mqtts) Add(v *Zigbee2mqtt) (id int64, err error)
Add ...
func (Zigbee2mqtts) Delete ¶ added in v0.1.0
func (z Zigbee2mqtts) Delete(id int64) (err error)
Delete ...
func (Zigbee2mqtts) GetById ¶ added in v0.1.0
func (z Zigbee2mqtts) GetById(id int64) (v *Zigbee2mqtt, err error)
GetById ...
func (*Zigbee2mqtts) GetByLogin ¶ added in v0.1.0
func (z *Zigbee2mqtts) GetByLogin(login string) (bridge *Zigbee2mqtt, err error)
GetByLogin ...
func (*Zigbee2mqtts) List ¶ added in v0.1.0
func (z *Zigbee2mqtts) List(limit, offset int64) (list []*Zigbee2mqtt, total int64, err error)
List ...
func (Zigbee2mqtts) Update ¶ added in v0.1.0
func (z Zigbee2mqtts) Update(m *Zigbee2mqtt) (err error)
Update ...
Source Files
¶
- alexa_intent.go
- alexa_skill.go
- db.go
- device.go
- device_action.go
- device_state.go
- flow.go
- flow_connection.go
- flow_element.go
- flow_subscription.go
- flow_zigbee2mqtt_device.go
- image.go
- log.go
- map.go
- map_device.go
- map_device_action.go
- map_device_history.go
- map_device_state.go
- map_element.go
- map_image.go
- map_layer.go
- map_text.go
- map_zone.go
- message.go
- message_delivery.go
- node.go
- permission.go
- role.go
- script.go
- storage.go
- template.go
- user.go
- usermeta.go
- variable.go
- worker.go
- workflow.go
- workflow_scenario.go
- workflow_scenario_script.go
- workflow_scripts.go
- zigbee2mqtt.go
- zigbee2mqtt_device.go