Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
EventListener is structure of a single EventListener
type HandlerSettings ¶
type HandlerSettings struct { Database string `md:"databaseName,required"` // MongoDB Database name Collection string `md:"collectionName"` // The collection to listen to for changes. If left blank, listens to all collections in a DB ListenInsert bool `md:"listenInsert,required"` // Should the trigger listen to Insert events? ListenUpdate bool `md:"listenUpdate,required"` // Should the trigger listen to Update events? ListenRemove bool `md:"listenRemove,required"` // Should the trigger listen to Remove events? }
HandlerSettings structure
type Output ¶
type Output struct {
Output map[string]interface{} `md:"output"` //The Output of the trigger
}
Output structure
type Settings ¶
type Settings struct {
Connection string `md:"connection,required"` // The MongoDB connection
}
Settings structure
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger is a stub for your Trigger implementation
func (*Trigger) Initialize ¶
func (t *Trigger) Initialize(ctx trigger.InitContext) error
Initialize Mongodb Event Listener
type TriggerFactory ¶
type TriggerFactory struct {
// contains filtered or unexported fields
}
TriggerFactory My Trigger factory
func (*TriggerFactory) Metadata ¶
func (*TriggerFactory) Metadata() *trigger.Metadata
Metadata implements trigger.Factory.Metadata
Click to show internal directories.
Click to hide internal directories.