Documentation ¶
Index ¶
- Variables
- type Adaptors
- type Connection
- func (n *Connection) Add(con *m.Connection) (id uuid.UUID, err error)
- func (n *Connection) AddOrUpdateConnection(connection *m.Connection) (err error)
- func (n *Connection) Delete(conIds []uuid.UUID) (err error)
- func (n *Connection) GetById(conId uuid.UUID) (con *m.Connection, err error)
- func (n *Connection) List(limit, offset int64, orderBy, sort string) (list []*m.Connection, total int64, err error)
- func (n *Connection) Update(con *m.Connection) (err error)
- type Device
- func (n *Device) Add(device *m.Device) (id int64, err error)
- func (n *Device) Delete(deviceId int64) (err error)
- func (n *Device) GetAllEnabled() (list []*m.Device, err error)
- func (n *Device) GetById(deviceId int64) (device *m.Device, err error)
- func (n *Device) List(limit, offset int64, orderBy, sort string) (list []*m.Device, total int64, err error)
- func (n *Device) Search(query string, limit, offset int) (list []*m.Device, total int64, err error)
- func (n *Device) Update(device *m.Device) (err error)
- type DeviceAction
- func (n *DeviceAction) Add(device *m.DeviceAction) (id int64, err error)
- func (n *DeviceAction) Delete(deviceId int64) (err error)
- func (n *DeviceAction) GetByDeviceId(deviceId int64) (actions []*m.DeviceAction, err error)
- func (n *DeviceAction) GetById(actionId int64) (device *m.DeviceAction, err error)
- func (n *DeviceAction) List(limit, offset int64, orderBy, sort string) (list []*m.DeviceAction, total int64, err error)
- func (n *DeviceAction) Search(query string, limit, offset int) (list []*m.DeviceAction, total int64, err error)
- func (n *DeviceAction) Update(device *m.DeviceAction) (err error)
- type DeviceDefault
- type DeviceSmartBus
- type DeviceState
- func (n *DeviceState) Add(device *m.DeviceState) (id int64, err error)
- func (n *DeviceState) Delete(deviceId int64) (err error)
- func (n *DeviceState) GetByDeviceId(deviceId int64) (states []*m.DeviceState, err error)
- func (n *DeviceState) GetById(deviceId int64) (device *m.DeviceState, err error)
- func (n *DeviceState) List(limit, offset int64, orderBy, sort string) (list []*m.DeviceState, total int64, err error)
- func (n *DeviceState) Update(device *m.DeviceState) (err error)
- type DeviceZigBee
- type Flow
- func (n *Flow) Add(flow *m.Flow) (id int64, err error)
- func (n *Flow) Delete(flowId int64) (err error)
- func (n *Flow) GetAllEnabled() (list []*m.Flow, err error)
- func (n *Flow) GetAllEnabledByWorkflow(workflowId int64) (list []*m.Flow, err error)
- func (n *Flow) GetById(flowId int64) (flow *m.Flow, err error)
- func (n *Flow) List(limit, offset int64, orderBy, sort string) (list []*m.Flow, total int64, err error)
- func (n *Flow) Search(query string, limit, offset int) (list []*m.Flow, total int64, err error)
- func (n *Flow) Update(flow *m.Flow) (err error)
- type FlowElement
- func (n *FlowElement) Add(element *m.FlowElement) (id uuid.UUID, err error)
- func (n *FlowElement) AddOrUpdateFlowElement(element *m.FlowElement) (err error)
- func (n *FlowElement) Delete(ids []uuid.UUID) (err error)
- func (n *FlowElement) GetAllEnabled() (list []*m.FlowElement, err error)
- func (n *FlowElement) GetById(elementId uuid.UUID) (element *m.FlowElement, err error)
- func (n *FlowElement) List(limit, offset int64, orderBy, sort string) (list []*m.FlowElement, total int64, err error)
- func (n *FlowElement) Update(element *m.FlowElement) (err error)
- type FlowSubscription
- type FlowZigbee2mqttDevice
- 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) 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) (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) 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 Map
- func (n *Map) Add(ver *m.Map) (id int64, err error)
- func (n *Map) Delete(mapId int64) (err error)
- func (n *Map) GetById(mapId int64) (ver *m.Map, err error)
- func (n *Map) GetFullById(mapId int64) (ver *m.Map, err error)
- func (n *Map) List(limit, offset int64, orderBy, sort string) (list []*m.Map, total int64, err error)
- func (n *Map) Search(query string, limit, offset int) (list []*m.Map, total int64, err error)
- func (n *Map) Update(ver *m.Map) (err error)
- type MapDevice
- type MapDeviceAction
- type MapDeviceState
- type MapElement
- func (n *MapElement) Add(ver *m.MapElement) (id int64, err error)
- func (n *MapElement) Delete(mapId int64) (err error)
- func (n *MapElement) GetActiveElements(sortBy, order string, limit, offset int) (result []*m.MapElement, total int64, err error)
- func (n *MapElement) GetById(mapId int64) (ver *m.MapElement, err error)
- func (n *MapElement) List(limit, offset int64, orderBy, sort string) (list []*m.MapElement, total int64, err error)
- func (n *MapElement) Sort(ver *m.MapElement) (err error)
- func (n *MapElement) Update(ver *m.MapElement) (err error)
- type MapImage
- func (n *MapImage) Add(ver *m.MapImage) (id int64, err error)
- func (n *MapImage) Delete(mapId int64) (err error)
- func (n *MapImage) GetById(mapId int64) (ver *m.MapImage, err error)
- func (n *MapImage) List(limit, offset int64, orderBy, sort string) (list []*m.MapImage, total int64, err error)
- func (n *MapImage) Sort(ver *m.MapImage) (err error)
- func (n *MapImage) Update(ver *m.MapImage) (err error)
- type MapLayer
- func (n *MapLayer) Add(ver *m.MapLayer) (id int64, err error)
- func (n *MapLayer) Delete(mapId int64) (err error)
- func (n *MapLayer) GetById(mapId int64) (ver *m.MapLayer, err error)
- func (n *MapLayer) List(limit, offset int64, orderBy, sort string) (list []*m.MapLayer, total int64, err error)
- func (n *MapLayer) Sort(ver *m.MapLayer) (err error)
- func (n *MapLayer) Update(ver *m.MapLayer) (err error)
- type MapText
- func (n *MapText) Add(ver *m.MapText) (id int64, err error)
- func (n *MapText) Delete(mapId int64) (err error)
- func (n *MapText) GetById(mapId int64) (ver *m.MapText, err error)
- func (n *MapText) List(limit, offset int64, orderBy, sort string) (list []*m.MapText, total int64, err error)
- func (n *MapText) Sort(ver *m.MapText) (err error)
- func (n *MapText) Update(ver *m.MapText) (err error)
- type MapZone
- func (n *MapZone) Add(tag *m.MapZone) (id int64, err error)
- func (n *MapZone) Clean() (err error)
- func (n *MapZone) Delete(name string) (err error)
- func (n *MapZone) GetByName(zoneName string) (ver *m.MapZone, err error)
- func (n *MapZone) Search(query string, limit, offset int) (list []*m.MapZone, 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 Node
- func (n *Node) Add(node *m.Node) (id int64, err error)
- func (n *Node) Delete(nodeId int64) (err error)
- func (n *Node) GetAllEnabled() (list []*m.Node, err error)
- func (n *Node) GetById(nodeId int64) (node *m.Node, err error)
- func (a *Node) GetByLogin(login string) (ver *m.Node, err error)
- func (n *Node) List(limit, offset int64, orderBy, sort string) (list []*m.Node, total int64, err error)
- func (n *Node) Search(query string, limit, offset int) (list []*m.Node, total int64, err error)
- func (n *Node) Update(node *m.Node) (err error)
- type Permission
- 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 int) (list []*m.Role, total int64, err error)
- func (n *Role) Update(role *m.Role) (err error)
- 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) List(limit, offset int64, orderBy, sort string) (list []*m.Script, total int64, err error)
- func (n *Script) Search(query string, limit, offset int) (list []*m.Script, total int64, err error)
- func (n *Script) Update(script *m.Script) (err error)
- 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 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) 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) NewToken(u *m.User) (token string, 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(variables *m.Variable) (err error)
- func (n *Variable) Delete(name string) (err error)
- func (n *Variable) GetAllEnabled() (list []*m.Variable, err error)
- func (n *Variable) GetByName(name string) (variables *m.Variable, err error)
- func (n *Variable) List(limit, offset int64, orderBy, sort string) (list []*m.Variable, total int64, err error)
- func (n *Variable) Update(variable *m.Variable) (err error)
- type Worker
- func (n *Worker) Add(worker *m.Worker) (id int64, err error)
- func (n *Worker) Delete(ids []int64) (err error)
- func (n *Worker) GetAllEnabled() (list []*m.Worker, err error)
- func (n *Worker) GetById(workerId int64) (worker *m.Worker, err error)
- func (n *Worker) List(limit, offset int64, orderBy, sort string) (list []*m.Worker, total int64, err error)
- func (n *Worker) Update(worker *m.Worker) (err error)
- type Workflow
- func (n *Workflow) Add(workflow *m.Workflow) (id int64, err error)
- func (n *Workflow) AddScript(workflow *m.Workflow, script *m.Script) (err error)
- func (n *Workflow) Delete(workflowId int64) (err error)
- func (n *Workflow) DependencyLoading(workflow *m.Workflow) (err error)
- func (n *Workflow) GetAllEnabled() (list []*m.Workflow, err error)
- func (n *Workflow) GetById(workflowId int64) (workflow *m.Workflow, err error)
- func (n *Workflow) GetByWorkflowScenarioId(workflowScenarioId int64) (workflow *m.Workflow, err error)
- func (n *Workflow) List(limit, offset int64, orderBy, sort string, onlyEnabled bool) (list []*m.Workflow, total int64, err error)
- func (n *Workflow) RemoveScript(workflow *m.Workflow, script *m.Script) (err error)
- func (n *Workflow) Search(query string, limit, offset int) (list []*m.Workflow, total int64, err error)
- func (n *Workflow) SetScenario(workflow *m.Workflow, s interface{}) (err error)
- func (n *Workflow) Update(workflow *m.Workflow) (err error)
- func (n *Workflow) UpdateScripts(wf *m.Workflow) (err error)
- type WorkflowScenario
- func (n *WorkflowScenario) Add(workflow *m.WorkflowScenario) (id int64, err error)
- func (n *WorkflowScenario) AddScript(workflowScenario *m.WorkflowScenario, script *m.Script) (err error)
- func (n *WorkflowScenario) Delete(workflowId int64) (err error)
- func (n *WorkflowScenario) GetById(scenarioId int64) (workflow *m.WorkflowScenario, err error)
- func (n *WorkflowScenario) List(limit, offset int64, orderBy, sort string) (list []*m.WorkflowScenario, total int64, err error)
- func (n *WorkflowScenario) ListByWorkflow(workflowId int64) (list []*m.WorkflowScenario, total int64, err error)
- func (n *WorkflowScenario) RemoveScript(workflowScenario *m.WorkflowScenario, script *m.Script) (err error)
- func (n *WorkflowScenario) Search(query string, limit, offset int) (list []*m.WorkflowScenario, total int64, err error)
- func (n *WorkflowScenario) Update(workflow *m.WorkflowScenario) (err error)
- func (n *WorkflowScenario) UpdateScripts(wf *m.WorkflowScenario) (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) Search(query string, limit, offset int) (list []*m.Zigbee2mqttDevice, total int64, err error)
- func (n *Zigbee2mqttDevice) Update(ver *m.Zigbee2mqttDevice) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRecordNotFound = errors.New("record not found")
)
Functions ¶
This section is empty.
Types ¶
type Adaptors ¶
type Adaptors struct { Node *Node Script *Script Workflow *Workflow WorkflowScenario *WorkflowScenario Device *Device DeviceAction *DeviceAction DeviceState *DeviceState Flow *Flow FlowElement *FlowElement FlowSubscription *FlowSubscription FlowZigbee2mqttDevice *FlowZigbee2mqttDevice Connection *Connection Worker *Worker Role *Role Permission *Permission User *User UserMeta *UserMeta Image *Image Variable *Variable Map *Map MapLayer *MapLayer MapText *MapText MapImage *MapImage MapDevice *MapDevice MapElement *MapElement MapDeviceState *MapDeviceState MapDeviceAction *MapDeviceAction Log *Log MapZone *MapZone Template *Template Message *Message MessageDelivery *MessageDelivery Zigbee2mqtt *Zigbee2mqtt Zigbee2mqttDevice *Zigbee2mqttDevice // contains filtered or unexported fields }
func NewAdaptors ¶
func NewAdaptors(db *gorm.DB, cfg *config.AppConfig, migrations *migrations.Migrations) (adaptors *Adaptors)
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func GetConnectionAdaptor ¶
func GetConnectionAdaptor(d *gorm.DB) *Connection
func (*Connection) Add ¶
func (n *Connection) Add(con *m.Connection) (id uuid.UUID, err error)
func (*Connection) AddOrUpdateConnection ¶
func (n *Connection) AddOrUpdateConnection(connection *m.Connection) (err error)
func (*Connection) GetById ¶
func (n *Connection) GetById(conId uuid.UUID) (con *m.Connection, err error)
func (*Connection) List ¶
func (n *Connection) List(limit, offset int64, orderBy, sort string) (list []*m.Connection, total int64, err error)
func (*Connection) Update ¶
func (n *Connection) Update(con *m.Connection) (err error)
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func GetDeviceAdaptor ¶
type DeviceAction ¶
type DeviceAction struct {
// contains filtered or unexported fields
}
func GetDeviceActionAdaptor ¶
func GetDeviceActionAdaptor(d *gorm.DB) *DeviceAction
func (*DeviceAction) Add ¶
func (n *DeviceAction) Add(device *m.DeviceAction) (id int64, err error)
func (*DeviceAction) Delete ¶
func (n *DeviceAction) Delete(deviceId int64) (err error)
func (*DeviceAction) GetByDeviceId ¶
func (n *DeviceAction) GetByDeviceId(deviceId int64) (actions []*m.DeviceAction, err error)
func (*DeviceAction) GetById ¶
func (n *DeviceAction) GetById(actionId int64) (device *m.DeviceAction, err error)
func (*DeviceAction) List ¶
func (n *DeviceAction) List(limit, offset int64, orderBy, sort string) (list []*m.DeviceAction, total int64, err error)
func (*DeviceAction) Search ¶
func (n *DeviceAction) Search(query string, limit, offset int) (list []*m.DeviceAction, total int64, err error)
func (*DeviceAction) Update ¶
func (n *DeviceAction) Update(device *m.DeviceAction) (err error)
type DeviceDefault ¶
type DeviceDefault struct {
Address *int `json:"address"`
}
type DeviceSmartBus ¶
type DeviceState ¶
type DeviceState struct {
// contains filtered or unexported fields
}
func GetDeviceStateAdaptor ¶
func GetDeviceStateAdaptor(d *gorm.DB) *DeviceState
func (*DeviceState) Add ¶
func (n *DeviceState) Add(device *m.DeviceState) (id int64, err error)
func (*DeviceState) Delete ¶
func (n *DeviceState) Delete(deviceId int64) (err error)
func (*DeviceState) GetByDeviceId ¶
func (n *DeviceState) GetByDeviceId(deviceId int64) (states []*m.DeviceState, err error)
func (*DeviceState) GetById ¶
func (n *DeviceState) GetById(deviceId int64) (device *m.DeviceState, err error)
func (*DeviceState) List ¶
func (n *DeviceState) List(limit, offset int64, orderBy, sort string) (list []*m.DeviceState, total int64, err error)
func (*DeviceState) Update ¶
func (n *DeviceState) Update(device *m.DeviceState) (err error)
type DeviceZigBee ¶
type DeviceZigBee struct {
Address string `json:"address"`
}
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
func GetFlowAdaptor ¶
func (*Flow) GetAllEnabledByWorkflow ¶
type FlowElement ¶
type FlowElement struct {
// contains filtered or unexported fields
}
func GetFlowElementAdaptor ¶
func GetFlowElementAdaptor(d *gorm.DB) *FlowElement
func (*FlowElement) Add ¶
func (n *FlowElement) Add(element *m.FlowElement) (id uuid.UUID, err error)
func (*FlowElement) AddOrUpdateFlowElement ¶
func (n *FlowElement) AddOrUpdateFlowElement(element *m.FlowElement) (err error)
func (*FlowElement) GetAllEnabled ¶
func (n *FlowElement) GetAllEnabled() (list []*m.FlowElement, err error)
func (*FlowElement) GetById ¶
func (n *FlowElement) GetById(elementId uuid.UUID) (element *m.FlowElement, err error)
func (*FlowElement) List ¶
func (n *FlowElement) List(limit, offset int64, orderBy, sort string) (list []*m.FlowElement, total int64, err error)
func (*FlowElement) Update ¶
func (n *FlowElement) Update(element *m.FlowElement) (err error)
type FlowSubscription ¶ added in v0.0.21
type FlowSubscription struct {
// contains filtered or unexported fields
}
func GetFlowSubscriptionAdaptor ¶ added in v0.0.21
func GetFlowSubscriptionAdaptor(Db *gorm.DB) *FlowSubscription
func (*FlowSubscription) Add ¶ added in v0.0.21
func (f *FlowSubscription) Add(sub *m.FlowSubscription) (err error)
func (*FlowSubscription) Remove ¶ added in v0.0.21
func (f *FlowSubscription) Remove(ids []int64) (err error)
type FlowZigbee2mqttDevice ¶ added in v0.1.0
type FlowZigbee2mqttDevice struct {
// contains filtered or unexported fields
}
func GetFlowZigbee2mqttDeviceAdaptor ¶ added in v0.1.0
func GetFlowZigbee2mqttDeviceAdaptor(Db *gorm.DB) *FlowZigbee2mqttDevice
func (*FlowZigbee2mqttDevice) Add ¶ added in v0.1.0
func (f *FlowZigbee2mqttDevice) Add(sub *m.FlowZigbee2mqttDevice) (err error)
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func GetImageAdaptor ¶
func (*Image) GetAllByDate ¶
func (*Image) GetFilterList ¶
func (n *Image) GetFilterList() (filterList []*m.ImageFilterList, err error)
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func GetLogAdaptor ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func GetMapAdaptor ¶
type MapDevice ¶
type MapDevice struct {
// contains filtered or unexported fields
}
func GetMapDeviceAdaptor ¶
type MapDeviceAction ¶
type MapDeviceAction struct {
// contains filtered or unexported fields
}
func GetMapDeviceActionAdaptor ¶
func GetMapDeviceActionAdaptor(d *gorm.DB) *MapDeviceAction
func (*MapDeviceAction) Add ¶
func (n *MapDeviceAction) Add(ver *m.MapDeviceAction) (id int64, err error)
func (*MapDeviceAction) AddMultiple ¶
func (n *MapDeviceAction) AddMultiple(items []*m.MapDeviceAction) (err error)
type MapDeviceState ¶
type MapDeviceState struct {
// contains filtered or unexported fields
}
func GetMapDeviceStateAdaptor ¶
func GetMapDeviceStateAdaptor(d *gorm.DB) *MapDeviceState
func (*MapDeviceState) Add ¶
func (n *MapDeviceState) Add(ver *m.MapDeviceState) (id int64, err error)
func (*MapDeviceState) AddMultiple ¶
func (n *MapDeviceState) AddMultiple(items []*m.MapDeviceState) (err error)
type MapElement ¶
type MapElement struct {
// contains filtered or unexported fields
}
func GetMapElementAdaptor ¶
func GetMapElementAdaptor(d *gorm.DB) *MapElement
func (*MapElement) Add ¶
func (n *MapElement) Add(ver *m.MapElement) (id int64, err error)
func (*MapElement) Delete ¶
func (n *MapElement) Delete(mapId int64) (err error)
func (*MapElement) GetActiveElements ¶ added in v0.0.14
func (n *MapElement) GetActiveElements(sortBy, order string, limit, offset int) (result []*m.MapElement, total int64, err error)
func (*MapElement) GetById ¶
func (n *MapElement) GetById(mapId int64) (ver *m.MapElement, err error)
func (*MapElement) List ¶
func (n *MapElement) List(limit, offset int64, orderBy, sort string) (list []*m.MapElement, total int64, err error)
func (*MapElement) Sort ¶
func (n *MapElement) Sort(ver *m.MapElement) (err error)
func (*MapElement) Update ¶
func (n *MapElement) Update(ver *m.MapElement) (err error)
type MapImage ¶
type MapImage struct {
// contains filtered or unexported fields
}
func GetMapImageAdaptor ¶
type MapLayer ¶
type MapLayer struct {
// contains filtered or unexported fields
}
func GetMapLayerAdaptor ¶
type MapText ¶
type MapText struct {
// contains filtered or unexported fields
}
func GetMapTextAdaptor ¶
type MapZone ¶ added in v0.0.14
type MapZone struct {
// contains filtered or unexported fields
}
func GetMapZoneAdaptor ¶ added in v0.0.14
type Message ¶ added in v0.0.17
type Message struct {
// contains filtered or unexported fields
}
func GetMessageAdaptor ¶ added in v0.0.17
type MessageDelivery ¶ added in v0.0.17
type MessageDelivery struct {
// contains filtered or unexported fields
}
func GetMessageDeliveryAdaptor ¶ added in v0.0.17
func GetMessageDeliveryAdaptor(d *gorm.DB) *MessageDelivery
func (*MessageDelivery) Add ¶ added in v0.0.17
func (n *MessageDelivery) Add(msg *m.MessageDelivery) (id int64, err error)
func (*MessageDelivery) Delete ¶ added in v0.0.17
func (n *MessageDelivery) Delete(id int64) (err error)
func (*MessageDelivery) GetAllUncompleted ¶ added in v0.0.17
func (n *MessageDelivery) GetAllUncompleted(limit, offset int64) (list []*m.MessageDelivery, total int64, err error)
func (*MessageDelivery) GetById ¶ added in v0.0.17
func (n *MessageDelivery) GetById(id int64) (ver *m.MessageDelivery, err error)
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)
func (*MessageDelivery) SetStatus ¶ added in v0.0.17
func (n *MessageDelivery) SetStatus(msg *m.MessageDelivery) (err error)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func GetNodeAdaptor ¶
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
func GetPermissionAdaptor ¶
func GetPermissionAdaptor(d *gorm.DB) *Permission
func (*Permission) Add ¶
func (n *Permission) Add(permission *m.Permission) (id int64, err error)
func (*Permission) Delete ¶
func (n *Permission) Delete(packageName string, levelName []string) (err error)
func (*Permission) GetAllPermissions ¶
func (n *Permission) GetAllPermissions(roleName string) (permissions []*m.Permission, err error)
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func GetRoleAdaptor ¶
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func GetScriptAdaptor ¶
type Template ¶ added in v0.0.17
type Template struct {
// contains filtered or unexported fields
}
func GetTemplateAdaptor ¶ added in v0.0.17
func (*Template) GetItemByName ¶ added in v0.0.17
func (*Template) GetItemsSortedList ¶ added in v0.0.17
func (*Template) GetItemsTree ¶ added in v0.0.17
func (n *Template) GetItemsTree() (tree []*m.TemplateTree, err error)
func (*Template) GetMarkers ¶ added in v0.0.17
func (*Template) UpdateItemsTree ¶ added in v0.0.17
func (n *Template) UpdateItemsTree(tree []*m.TemplateTree) (err error)
func (*Template) UpdateOrCreate ¶ added in v0.0.17
type User ¶
type User struct {
// contains filtered or unexported fields
}
func GetUserAdaptor ¶
func (*User) GenResetPassToken ¶
func (*User) GetByAuthenticationToken ¶
func (*User) GetByResetPassToken ¶
type UserMeta ¶
type UserMeta struct {
// contains filtered or unexported fields
}
func GetUserMetaAdaptor ¶
type Variable ¶
type Variable struct {
// contains filtered or unexported fields
}
func GetVariableAdaptor ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func GetWorkerAdaptor ¶
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
func GetWorkflowAdaptor ¶
func (*Workflow) DependencyLoading ¶
func (*Workflow) GetByWorkflowScenarioId ¶ added in v0.0.25
func (*Workflow) RemoveScript ¶
func (*Workflow) SetScenario ¶
type WorkflowScenario ¶
type WorkflowScenario struct {
// contains filtered or unexported fields
}
func GetWorkflowScenarioAdaptor ¶
func GetWorkflowScenarioAdaptor(d *gorm.DB) *WorkflowScenario
func (*WorkflowScenario) Add ¶
func (n *WorkflowScenario) Add(workflow *m.WorkflowScenario) (id int64, err error)
func (*WorkflowScenario) AddScript ¶
func (n *WorkflowScenario) AddScript(workflowScenario *m.WorkflowScenario, script *m.Script) (err error)
func (*WorkflowScenario) Delete ¶
func (n *WorkflowScenario) Delete(workflowId int64) (err error)
func (*WorkflowScenario) GetById ¶
func (n *WorkflowScenario) GetById(scenarioId int64) (workflow *m.WorkflowScenario, err error)
func (*WorkflowScenario) List ¶
func (n *WorkflowScenario) List(limit, offset int64, orderBy, sort string) (list []*m.WorkflowScenario, total int64, err error)
func (*WorkflowScenario) ListByWorkflow ¶
func (n *WorkflowScenario) ListByWorkflow(workflowId int64) (list []*m.WorkflowScenario, total int64, err error)
func (*WorkflowScenario) RemoveScript ¶
func (n *WorkflowScenario) RemoveScript(workflowScenario *m.WorkflowScenario, script *m.Script) (err error)
func (*WorkflowScenario) Search ¶
func (n *WorkflowScenario) Search(query string, limit, offset int) (list []*m.WorkflowScenario, total int64, err error)
func (*WorkflowScenario) Update ¶
func (n *WorkflowScenario) Update(workflow *m.WorkflowScenario) (err error)
func (*WorkflowScenario) UpdateScripts ¶
func (n *WorkflowScenario) UpdateScripts(wf *m.WorkflowScenario) (err error)
type Zigbee2mqtt ¶ added in v0.1.0
type Zigbee2mqtt struct {
// contains filtered or unexported fields
}
func GetZigbee2mqttAdaptor ¶ added in v0.1.0
func GetZigbee2mqttAdaptor(d *gorm.DB) *Zigbee2mqtt
func (*Zigbee2mqtt) Add ¶ added in v0.1.0
func (n *Zigbee2mqtt) Add(ver *m.Zigbee2mqtt) (id int64, err error)
func (*Zigbee2mqtt) Delete ¶ added in v0.1.0
func (n *Zigbee2mqtt) Delete(id int64) (err error)
func (*Zigbee2mqtt) GetById ¶ added in v0.1.0
func (n *Zigbee2mqtt) GetById(id int64) (ver *m.Zigbee2mqtt, err error)
func (*Zigbee2mqtt) GetByLogin ¶ added in v0.1.0
func (a *Zigbee2mqtt) GetByLogin(login string) (ver *m.Zigbee2mqtt, err error)
func (*Zigbee2mqtt) List ¶ added in v0.1.0
func (n *Zigbee2mqtt) List(limit, offset int64) (list []*m.Zigbee2mqtt, total int64, err error)
func (*Zigbee2mqtt) Update ¶ added in v0.1.0
func (n *Zigbee2mqtt) Update(ver *m.Zigbee2mqtt) (err error)
type Zigbee2mqttDevice ¶ added in v0.1.0
type Zigbee2mqttDevice struct {
// contains filtered or unexported fields
}
func GetZigbee2mqttDeviceAdaptor ¶ added in v0.1.0
func GetZigbee2mqttDeviceAdaptor(d *gorm.DB) *Zigbee2mqttDevice
func (*Zigbee2mqttDevice) Add ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Add(ver *m.Zigbee2mqttDevice) (err error)
func (*Zigbee2mqttDevice) Delete ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Delete(id string) (err error)
func (*Zigbee2mqttDevice) GetById ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) GetById(id string) (ver *m.Zigbee2mqttDevice, err error)
func (*Zigbee2mqttDevice) List ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) List(limit, offset int64) (list []*m.Zigbee2mqttDevice, total int64, err error)
func (*Zigbee2mqttDevice) Search ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Search(query string, limit, offset int) (list []*m.Zigbee2mqttDevice, total int64, err error)
func (*Zigbee2mqttDevice) Update ¶ added in v0.1.0
func (n *Zigbee2mqttDevice) Update(ver *m.Zigbee2mqttDevice) (err error)
Source Files ¶
- adaptors.go
- device.go
- device_action.go
- device_properties.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_state.go
- map_element.go
- map_image.go
- map_layer.go
- map_text.go
- map_zone.go
- message.go
- message_delivery.go
- node.go
- permissions.go
- role.go
- script.go
- template.go
- types.go
- user.go
- usermeta.go
- variable.go
- worker.go
- workflow.go
- workflow_scenario.go
- zigbee2mqtt.go
- zigbee2mqtt_device.go
Click to show internal directories.
Click to hide internal directories.