Versions in this module Expand all Collapse all v0 v0.1.1 Jul 29, 2024 v0.1.0 Jul 24, 2024 Changes in this version + const MethodGetInfo + const MethodSendNotification + const MethodSetConfig + func FormatMessage(writer io.Writer, req *NotificationRequest) + func FormatSubject(req *NotificationRequest) string + func PopulateDefaults(typePtr Plugin) error + func RunPlugin(plugin Plugin) + type Address struct + Address string + Type string + type ConfigOption struct + Default any + Help map[string]string + Label map[string]string + Max types.Int + Min types.Int + Name string + Options map[string]string + Required bool + Type string + type ConfigOptions []ConfigOption + func (c ConfigOptions) Value() (driver.Value, error) + type Contact struct + Addresses []*Address + FullName string + type Event struct + Message string + Time time.Time + Type string + Username string + type Incident struct + Id int64 + Severity string + Url string + type Info struct + Author string + ConfigAttributes ConfigOptions + Name string + Type string + Version string + func (i *Info) TableName() string + type NotificationRequest struct + Contact *Contact + Event *Event + Incident *Incident + Object *Object + type Object struct + ExtraTags map[string]string + Name string + Tags map[string]string + Url string + type Plugin interface + GetInfo func() *Info + SendNotification func(req *NotificationRequest) error + SetConfig func(jsonStr json.RawMessage) error