Documentation
¶
Overview ¶
Package notifyprofile notification profile management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("profile not found")
ErrNotFound is returned when a profile is not found.
Functions ¶
func DeleteProfile ¶
DeleteProfile deletes a notification profile.
func SaveProfile ¶
SaveProfile saves a notification profile.
Types ¶
type Config ¶
type Config struct {
ProfileName string `json:"profile"`
MethodConfig sender.MethodConfig `json:"method"`
MinSeverity sender.Severity `json:"minSeverity"`
}
Config is a struct that represents the configuration for a single notification profile.
func GetProfile ¶
GetProfile returns a notification profile by name.
func ListProfiles ¶
ListProfiles returns a list of notification profiles.
Click to show internal directories.
Click to hide internal directories.