Documentation ¶
Index ¶
Constants ¶
View Source
const ActionFunc = "automationAction"
ActionFunc ...
View Source
const ConditionFunc = "automationCondition"
ConditionFunc ...
View Source
const TriggerFunc = "automationTrigger"
TriggerFunc ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
Action ...
func NewAction ¶
func NewAction(scriptService scripts.ScriptService, entityManager entity_manager.EntityManager, model *m.Action) (action *Action, err error)
NewAction ...
type ActionBind ¶
type ActionBind struct {
// contains filtered or unexported fields
}
Javascript Binding
Action
.callAction(entityId, action, args)
func (*ActionBind) CallAction ¶
func (e *ActionBind) CallAction(id common.EntityId, action string, arg map[string]interface{})
CallAction ...
type Automation ¶
type Automation interface { Start() (err error) Shutdown() (err error) Reload() AddTask(model *m.Task) RemoveTask(model *m.Task) }
Automation ...
func NewAutomation ¶
func NewAutomation(lc fx.Lifecycle, eventBus bus.Bus, scriptService scripts.ScriptService, entityManager entity_manager.EntityManager, adaptors *adaptors.Adaptors, pluginManager common.PluginManager) (auto Automation)
NewAutomation ...
type Condition ¶
type Condition struct {
// contains filtered or unexported fields
}
Condition ...
func NewCondition ¶
func NewCondition(scriptService scripts.ScriptService, model *m.Condition, entityManager entity_manager.EntityManager) (condition *Condition, err error)
NewCondition ...
type ConditionBind ¶
type ConditionBind struct {
// contains filtered or unexported fields
}
ConditionBind...
func NewConditionBind ¶
func NewConditionBind(condition *Condition) *ConditionBind
Javascript Binding
Condition
type ConditionGroup ¶
ConditionGroup ...
func NewConditionGroup ¶
func NewConditionGroup(automation *automation, t common.ConditionType) *ConditionGroup
NewConditionGroup ...
func (*ConditionGroup) AddCondition ¶
func (c *ConditionGroup) AddCondition(condition *Condition)
AddCondition ...
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task ...
func NewTask ¶
func NewTask(automation *automation, scriptService scripts.ScriptService, model *m.Task, entityManager entity_manager.EntityManager, rawPlugin triggers.IGetTrigger) *Task
NewTask ...
type Trigger ¶
Trigger ...
func NewTrigger ¶
func NewTrigger(scriptService scripts.ScriptService, taskName string, model *m.Trigger, rawPlugin triggers.IGetTrigger, cb func(entityId *common.EntityId)) (tr *Trigger, err error)
NewTrigger ...
type TriggerBind ¶
type TriggerBind struct {
// contains filtered or unexported fields
}
Javascript Binding
Trigger
Click to show internal directories.
Click to hide internal directories.