Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeBlockFmt = "```%s```" // slackMsgFmt ... Slack message format SlackMsgFmt = `` /* 176-byte string literal not displayed */ )
TODO: add timestamp to the message
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interpolator ¶
Interpolator ... Interface for interpolating messages
type Manager ¶
type Manager interface {
AddSession(core.SUUID, core.AlertDestination) error
Transit() chan core.Alert
core.Subsystem
}
Manager ... Interface for alert manager
func NewManager ¶
func NewManager(ctx context.Context, sc client.SlackClient) Manager
NewManager ... Instantiates a new alert manager
type Store ¶
type Store interface {
AddAlertDestination(core.SUUID, core.AlertDestination) error
GetAlertDestination(sUUID core.SUUID) (core.AlertDestination, error)
}
Store ... Interface for alert store NOTE - This is a simple in-memory store, using this interface we can easily swap it out for a persistent store
Click to show internal directories.
Click to hide internal directories.