Versions in this module Expand all Collapse all v0 v0.3.2 Nov 9, 2018 Changes in this version + const TriggerTypeCron + func RegisterTrigger(triggerType string, trigger Trigger) error + func UnregisterTrigger(triggerType string) + type Executer interface + Run func() + type Manager struct + func GetTriggerMgr() *Manager + func (m *Manager) Add(ctx *context.Context, plan *model.Plan, executer Executer) error + func (m *Manager) Remove(ctx *context.Context, plan *model.Plan) error + func (m *Manager) Update(ctx *context.Context, plan *model.Plan, executer Executer) error + type Trigger interface + Add func(planId, properties string, executer Executer) error + Remove func(planId string) error + Update func(planId, properties string, executer Executer) error + func GetTrigger(triggerType string) Trigger