Documentation ¶
Index ¶
- 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) 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 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) 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 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
- func (n MapDevices) Add(v *MapDevice) (id int64, err error)
- func (n MapDevices) Delete(id int64) (err error)
- func (n MapDevices) GetById(mapId int64) (v *MapDevice, err error)
- func (n *MapDevices) List(limit, offset int64, orderBy, sort string) (list []*MapDevice, total int64, err error)
- func (n MapDevices) Update(m *MapDevice) (err error)
- 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) 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) 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 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) 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, 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) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 }
func (*Connection) TableName ¶
func (d *Connection) TableName() string
type Connections ¶
func (Connections) Add ¶
func (n Connections) Add(connection *Connection) (id uuid.UUID, err error)
func (Connections) GetById ¶
func (n Connections) GetById(id uuid.UUID) (connection *Connection, err error)
func (*Connections) List ¶
func (n *Connections) List(limit, offset int64, orderBy, sort string) (list []*Connection, total int64, err error)
func (Connections) Update ¶
func (n Connections) Update(m *Connection) (err error)
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 }
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 }
func (*DeviceAction) TableName ¶
func (m *DeviceAction) TableName() string
type DeviceActions ¶
func (DeviceActions) Add ¶
func (n DeviceActions) Add(action *DeviceAction) (id int64, err error)
func (DeviceActions) Delete ¶
func (n DeviceActions) Delete(actionId int64) (err error)
func (DeviceActions) GetByDeviceId ¶
func (n DeviceActions) GetByDeviceId(deviceId int64) (actions []*DeviceAction, err error)
func (DeviceActions) GetById ¶
func (n DeviceActions) GetById(actionId int64) (action *DeviceAction, err error)
func (*DeviceActions) List ¶
func (n *DeviceActions) List(limit, offset int64, orderBy, sort string) (list []*DeviceAction, total int64, err error)
func (*DeviceActions) Search ¶
func (n *DeviceActions) Search(query string, limit, offset int) (list []*DeviceAction, total int64, err error)
func (DeviceActions) Update ¶
func (n DeviceActions) Update(m *DeviceAction) (err error)
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 }
func (*DeviceState) TableName ¶
func (m *DeviceState) TableName() string
type DeviceStates ¶
func (DeviceStates) Add ¶
func (n DeviceStates) Add(state *DeviceState) (id int64, err error)
func (DeviceStates) Delete ¶
func (n DeviceStates) Delete(stateId int64) (err error)
func (DeviceStates) GetByDeviceId ¶
func (n DeviceStates) GetByDeviceId(deviceId int64) (actions []*DeviceState, err error)
func (DeviceStates) GetById ¶
func (n DeviceStates) GetById(stateId int64) (state *DeviceState, err error)
func (*DeviceStates) List ¶
func (n *DeviceStates) List(limit, offset int64, orderBy, sort string) (list []*DeviceState, total int64, err error)
func (DeviceStates) Update ¶
func (n DeviceStates) Update(m *DeviceState) (err error)
type Devices ¶
func (*Devices) DependencyLoading ¶
func (Devices) GetAllEnabled ¶
func (*Devices) RemoveAction ¶
func (*Devices) 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 CreatedAt time.Time UpdatedAt time.Time }
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 }
func (*FlowElement) TableName ¶
func (d *FlowElement) TableName() string
type FlowElements ¶
func (FlowElements) Add ¶
func (n FlowElements) Add(flow *FlowElement) (id uuid.UUID, err error)
func (FlowElements) GetAllEnabled ¶
func (n FlowElements) GetAllEnabled() (list []*FlowElement, err error)
func (FlowElements) GetById ¶
func (n FlowElements) GetById(id uuid.UUID) (flow *FlowElement, err error)
func (*FlowElements) List ¶
func (n *FlowElements) List(limit, offset int64, orderBy, sort string) (list []*FlowElement, total int64, err error)
func (FlowElements) Update ¶
func (n FlowElements) Update(m *FlowElement) (err error)
type FlowSubscription ¶ added in v0.0.21
type FlowSubscription struct { Id int64 `gorm:"primary_key"` Flow *Flow FlowId int64 Topic string CreatedAt time.Time }
func (*FlowSubscription) TableName ¶ added in v0.0.21
func (d *FlowSubscription) TableName() string
type FlowSubscriptions ¶ added in v0.0.21
type FlowSubscriptions struct {
// contains filtered or unexported fields
}
func NewFlowSubscriptions ¶ added in v0.0.21
func NewFlowSubscriptions(db *gorm.DB) *FlowSubscriptions
func (*FlowSubscriptions) Add ¶ added in v0.0.21
func (f *FlowSubscriptions) Add(sub *FlowSubscription) (err error)
func (*FlowSubscriptions) Delete ¶ added in v0.0.21
func (f *FlowSubscriptions) Delete(ids []int64) (err error)
type Flows ¶
func (*Flows) DependencyLoading ¶
func (Flows) GetAllEnabled ¶
func (Flows) GetAllEnabledByWorkflow ¶
type Image ¶
type ImageFilterList ¶
type Images ¶
func (*Images) GetAllByDate ¶
func (*Images) GetFilterList ¶
func (n *Images) GetFilterList() (images []*ImageFilterList, err error)
type Log ¶
type Map ¶
type 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 }
func (*MapDeviceAction) TableName ¶
func (d *MapDeviceAction) TableName() string
type MapDeviceActions ¶
func (MapDeviceActions) Add ¶
func (n MapDeviceActions) Add(v *MapDeviceAction) (id int64, err error)
func (MapDeviceActions) Delete ¶
func (n MapDeviceActions) Delete(mapId int64) (err error)
func (MapDeviceActions) GetById ¶
func (n MapDeviceActions) GetById(mapId int64) (v *MapDeviceAction, err error)
func (*MapDeviceActions) List ¶
func (n *MapDeviceActions) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceAction, total int64, err error)
func (MapDeviceActions) Update ¶
func (n MapDeviceActions) Update(m *MapDeviceAction) (err error)
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 }
func (*MapDeviceState) TableName ¶
func (d *MapDeviceState) TableName() string
type MapDeviceStates ¶
func (MapDeviceStates) Add ¶
func (n MapDeviceStates) Add(v *MapDeviceState) (id int64, err error)
func (MapDeviceStates) Delete ¶
func (n MapDeviceStates) Delete(mapId int64) (err error)
func (MapDeviceStates) GetById ¶
func (n MapDeviceStates) GetById(mapId int64) (v *MapDeviceState, err error)
func (*MapDeviceStates) List ¶
func (n *MapDeviceStates) List(limit, offset int64, orderBy, sort string) (list []*MapDeviceState, total int64, err error)
func (MapDeviceStates) Update ¶
func (n MapDeviceStates) Update(m *MapDeviceState) (err error)
type MapDevices ¶
func (MapDevices) Delete ¶
func (n MapDevices) Delete(id int64) (err error)
func (MapDevices) Update ¶
func (n MapDevices) Update(m *MapDevice) (err error)
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 }
func (*MapElement) TableName ¶
func (d *MapElement) TableName() string
type MapElements ¶
func (MapElements) Add ¶
func (n MapElements) Add(v *MapElement) (id int64, err error)
func (MapElements) Delete ¶
func (n MapElements) Delete(mapId int64) (err error)
func (*MapElements) GetActiveElements ¶ added in v0.0.14
func (n *MapElements) GetActiveElements(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
func (MapElements) GetById ¶
func (n MapElements) GetById(mapId int64) (v *MapElement, err error)
func (*MapElements) List ¶
func (n *MapElements) List(limit, offset int64, orderBy, sort string) (list []*MapElement, total int64, err error)
func (MapElements) Sort ¶
func (n MapElements) Sort(m *MapElement) (err error)
func (MapElements) Update ¶
func (n MapElements) Update(m *MapElement) (err error)
type MapLayer ¶
type Message ¶ added in v0.0.17
type MessageDeliveries ¶ added in v0.0.17
func (MessageDeliveries) Add ¶ added in v0.0.17
func (n MessageDeliveries) Add(msg *MessageDelivery) (id int64, err error)
func (MessageDeliveries) Delete ¶ added in v0.0.17
func (n MessageDeliveries) Delete(id int64) (err error)
func (*MessageDeliveries) GetAllUncompleted ¶ added in v0.0.17
func (n *MessageDeliveries) GetAllUncompleted(limit, offset int64) (list []*MessageDelivery, total int64, err error)
func (MessageDeliveries) GetById ¶ added in v0.0.17
func (n MessageDeliveries) GetById(id int64) (msg *MessageDelivery, err error)
func (*MessageDeliveries) List ¶ added in v0.0.17
func (n *MessageDeliveries) List(limit, offset int64, orderBy, sort string) (list []*MessageDelivery, total int64, err error)
func (MessageDeliveries) SetStatus ¶ added in v0.0.17
func (n MessageDeliveries) SetStatus(msg *MessageDelivery) (err error)
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 }
func (*MessageDelivery) TableName ¶ added in v0.0.17
func (d *MessageDelivery) TableName() string
type Node ¶
type Permission ¶
type Permission struct { Id int64 `gorm:"primary_key"` Role *Role `gorm:"foreignkey:RoleName"` RoleName string PackageName string LevelName string }
func (*Permission) TableName ¶
func (m *Permission) TableName() string
type Permissions ¶
func (Permissions) Add ¶
func (n Permissions) Add(permission *Permission) (id int64, err error)
func (Permissions) Delete ¶
func (n Permissions) Delete(packageName string, levelName []string) (err error)
func (Permissions) GetAllPermissions ¶
func (n Permissions) GetAllPermissions(name string) (permissions []*Permission, err error)
type Role ¶
type Script ¶
type Template ¶ added in v0.0.17
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"` }
type Templates ¶ added in v0.0.17
func (Templates) GetItemsSortedList ¶ added in v0.0.17
func (Templates) GetItemsTree ¶ added in v0.0.17
func (n Templates) GetItemsTree() (tree []*TemplateTree, err error)
func (Templates) UpdateItemsTree ¶ added in v0.0.17
func (n Templates) UpdateItemsTree(tree []*TemplateTree, parent string) error
func (Templates) UpdateOrCreate ¶ added in v0.0.17
func (Templates) UpdateStatus ¶ added in v0.0.17
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"` }
type Users ¶
func (*Users) ClearResetPassToken ¶
func (*Users) ClearToken ¶
func (*Users) GetByAuthenticationToken ¶
func (*Users) GetByResetPassToken ¶
func (*Users) NewResetPassToken ¶
type Variable ¶
type Variables ¶
func (Variables) GetAllEnabled ¶
type Worker ¶
type 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 }
func (*WorkflowScenario) TableName ¶
func (d *WorkflowScenario) TableName() string
type WorkflowScenarioScript ¶
type WorkflowScenarioScript struct { Id int64 `gorm:"primary_key"` ScriptId int64 WorkflowScenarioId int64 }
func (*WorkflowScenarioScript) TableName ¶
func (d *WorkflowScenarioScript) TableName() string
type WorkflowScenarioScripts ¶
func (WorkflowScenarioScripts) Add ¶
func (n WorkflowScenarioScripts) Add(scenario *WorkflowScenarioScript) (id int64, err error)
func (WorkflowScenarioScripts) Delete ¶
func (n WorkflowScenarioScripts) Delete(workflowId int64) (err error)
func (*WorkflowScenarioScripts) List ¶
func (n *WorkflowScenarioScripts) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenarioScript, total int64, err error)
type WorkflowScenarios ¶
func (WorkflowScenarios) Add ¶
func (n WorkflowScenarios) Add(scenario *WorkflowScenario) (id int64, err error)
func (*WorkflowScenarios) AddScript ¶
func (n *WorkflowScenarios) AddScript(workflowScenarioId, scriptId int64) (err error)
func (WorkflowScenarios) Delete ¶
func (n WorkflowScenarios) Delete(workflowId int64) (err error)
func (*WorkflowScenarios) DependencyLoading ¶
func (n *WorkflowScenarios) DependencyLoading(scenario *WorkflowScenario) (err error)
func (WorkflowScenarios) GetById ¶
func (n WorkflowScenarios) GetById(scenarioId int64) (scenario *WorkflowScenario, err error)
func (*WorkflowScenarios) List ¶
func (n *WorkflowScenarios) List(limit, offset int64, orderBy, sort string) (list []*WorkflowScenario, total int64, err error)
func (*WorkflowScenarios) ListByWorkflow ¶
func (n *WorkflowScenarios) ListByWorkflow(workflowId int64) (list []*WorkflowScenario, total int64, err error)
func (*WorkflowScenarios) RemoveScript ¶
func (n *WorkflowScenarios) RemoveScript(workflowScenarioId, scriptId int64) (err error)
func (*WorkflowScenarios) Search ¶
func (n *WorkflowScenarios) Search(query string, limit, offset int) (list []*WorkflowScenario, total int64, err error)
func (WorkflowScenarios) Update ¶
func (n WorkflowScenarios) Update(m *WorkflowScenario) (err error)
type WorkflowScripts ¶
type WorkflowScripts struct { Id int64 `gorm:"primary_key"` Workflow *Workflow WorkflowId int64 Script *Script ScriptId int64 Weight int64 }
func (*WorkflowScripts) TableName ¶
func (d *WorkflowScripts) TableName() string
type Workflows ¶
func (*Workflows) DependencyLoading ¶
func (Workflows) GetAllEnabled ¶
func (*Workflows) RemoveScript ¶
func (*Workflows) SetScenario ¶
Source Files ¶
- db.go
- device.go
- device_action.go
- device_state.go
- flow.go
- flow_connection.go
- flow_element.go
- flow_subscription.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
- permission.go
- role.go
- script.go
- template.go
- user.go
- usermeta.go
- variable.go
- worker.go
- workflow.go
- workflow_scenario.go
- workflow_scenario_script.go
- workflow_scripts.go
Click to show internal directories.
Click to hide internal directories.