Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "triggers" // TopicSystemStart ... TopicSystemStart = "system/event/start" //todo move // TopicSystemStop ... TopicSystemStop = "system/event/stop" //todo move Version = "0.0.1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IGetTrigger ¶
IGetTrigger ...
type IRegistrar ¶
type IRegistrar interface {
RegisterTrigger(ITrigger) error
UnregisterTrigger(string) error
TriggerList() []string
}
IRegistrar ...
type ITrigger ¶
type ITrigger interface {
Name() string
AsyncAttach(wg *sync.WaitGroup)
Subscribe(Subscriber) error
Unsubscribe(Subscriber) error
FunctionName() string
}
todo deAttach
type Subscriber ¶
type Subscriber struct {
EntityId *common.EntityId
Handler interface{}
Payload m.Attributes
}
Subscriber ...
Click to show internal directories.
Click to hide internal directories.