Documentation ¶
Overview ¶
Integrate different notification services to send notifications about the application status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ntfy ¶
type Ntfy struct { // AccessToken is the access token for the Ntfy service. Required if the Ntfy service requires authentication using access token. Provide the access token in the environment variable NOTIFICATION_NTFY_AUTH_TOKEN. AccessToken string `yaml:"-"` // ServerEndpoint is the endpoint for the Ntfy service. ServerEndpoint string `yaml:"serverEndpoint"` // SubscriptionID is the subscription ID for the Ntfy service. SubscriptionID string `yaml:"subscriptionID"` // UserName is the username for the Ntfy service. Required if the Ntfy service requires authentication using username and password. Provide the password in the environment variable NOTIFICATION_NTFY_PASSWORD. UserName string `yaml:"userName"` // Password is the password for the Ntfy service. Required if the Ntfy service requires authentication using username and password. Provide the password in the environment variable NOTIFICATION_NTFY_PASSWORD. Password string `yaml:"-"` // Events is a list of events that the Ntfy service can send notifications for. Supported events are errors, success, or all. Default is errors. Events string `yaml:"events" validate:"oneof=errors success all '' "` }
Ntfy is a struct that contains the configuration for the Ntfy notification service. Visit https://docs.ntfy.sh/ for more information.
type Stdout ¶
type Stdout struct{}
Stdout is a struct that contains the configuration for the sending messages to stdout. Stdout is only used to allow for scenarios where no notification method is provided. By default messages are sent to stdout.
func NewStdout ¶
func NewStdout() *Stdout
Stdout is a struct that contains the configuration for the sending messages to stdout.
Click to show internal directories.
Click to hide internal directories.