Documentation ¶ Index ¶ Constants func NewContext() (err error) func Notify(cmd *NotifyCmd) func NotifyTxn(txn models.Txn) (err error) type Delay type Notifier type NotifyCmd func NewCmd(url string, txn models.Txn) *NotifyCmd func (nc NotifyCmd) NextDelay() Delay Constants ¶ View Source const ( // NoDelay instant NoDelay Delay = 0 OneHour = Delay(time.Hour) SixHours = OneHour * 6 ) Variables ¶ This section is empty. Functions ¶ func NewContext ¶ func NewContext() (err error) func Notify ¶ func Notify(cmd *NotifyCmd) Notify helper for global usage func NotifyTxn ¶ func NotifyTxn(txn models.Txn) (err error) NotifyTxn get account apps and notify all apps about txn Types ¶ type Delay ¶ type Delay time.Duration type Notifier ¶ type Notifier interface { Notify(*NotifyCmd) error Start() error } type NotifyCmd ¶ type NotifyCmd struct { URL string Delay Delay Txn models.Txn } func NewCmd ¶ func NewCmd(url string, txn models.Txn) *NotifyCmd NewCmd returns new cmd with zero delay func (NotifyCmd) NextDelay ¶ func (nc NotifyCmd) NextDelay() Delay Source Files ¶ View all Source files cmd.go default_notifier.go notifier.go Click to show internal directories. Click to hide internal directories.