Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize all plugins from configuration
func InitializeData ¶
func InitializeData(person *structs.PersonMetrics)
InitializeData will send signal to all plugins that the data was initialized
func ParseData ¶
func ParseData(person *structs.PersonMetrics)
ParseData will parse new data for a given person and send it to every configured plugin
Types ¶
type CSV ¶
type CSV struct {
Dir string
}
CSV contains configuration for the CSV plugin
func (CSV) Initialize ¶
Initialize the Csv plugin
func (CSV) InitializeData ¶
func (plugin CSV) InitializeData(_ *structs.PersonMetrics) bool
func (CSV) Logger ¶
func (plugin CSV) Logger() log.FieldLogger
type MQTT ¶
type MQTT struct { Host string Username string Password string // contains filtered or unexported fields }
func (MQTT) Initialize ¶
Initialize the Csv plugin
func (MQTT) InitializeData ¶
func (plugin MQTT) InitializeData(person *structs.PersonMetrics) bool
func (MQTT) Logger ¶
func (plugin MQTT) Logger() log.FieldLogger
type Mail ¶
type Mail struct { Server string SenderName string SenderAddress string Recipients map[string]structs.MailRecipient StartTLS bool TemplateFile string Subject string Metrics int }
Mail contains configuration for the Mail plugin
func (Mail) Initialize ¶
Initialize the Mail plugin
func (Mail) InitializeData ¶
func (plugin Mail) InitializeData(_ *structs.PersonMetrics) bool
func (Mail) Logger ¶
func (plugin Mail) Logger() log.FieldLogger
type MailRecipient ¶
type MailRecipient struct {
Address []string
}
MailRecipient contains a person name, and a list of addresses to send updates to
Click to show internal directories.
Click to hide internal directories.