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 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) 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 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 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 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) (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 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 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 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) 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 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 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
- 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
- node.go
- permission.go
- role.go
- script.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.