Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface { // Notify publishes changes detected by Sauron Notify(opts model.WatchOptions, lastUpdate, update model.Update) error }
Notifier is the interface required by Sauron to publish changes
func New ¶
New returns a new concrete Notifier implementation depending on which options are set. If none, a basic notifier writing to stderr is returned
type Options ¶
type Options struct { // SNS target options SNS struct { TopicARN string `long:"topic-arn" env:"SNS_TOPIC_ARN" description:"ARN of the SNS topic"` } `group:"notifier.sns" namespace:"sns"` // File target options. This is the default if nothing else is provided File struct { Path string `long:"path" default:"" env:"NOTIFY_FILE_PATH" description:"path of the state file"` } `group:"notifier.file" namespace:"file"` }
Options contains the parameters necessary to configure a concrete Notifier implementation
Click to show internal directories.
Click to hide internal directories.