Documentation
¶
Index ¶
Constants ¶
View Source
const MaxNumPerBatch = 64
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManager ¶
type AlertManager struct { Endpoint string // contains filtered or unexported fields }
func NewAlertManager ¶
func NewAlertManager(addr string, distribution bool) *AlertManager
type NotifyManager ¶
type NotifyManager struct { QueueCapacity int // contains filtered or unexported fields }
func NewManager ¶
func NewManager(done chan interface{}, amAddr string, isDistribution bool) *NotifyManager
func (*NotifyManager) Consume ¶
func (m *NotifyManager) Consume() []*Alert
func (*NotifyManager) Run ¶
func (m *NotifyManager) Run()
func (*NotifyManager) Send ¶
func (m *NotifyManager) Send(alerts ...*Alert)
Click to show internal directories.
Click to hide internal directories.