Documentation ¶
Index ¶
Constants ¶
View Source
const FullValidConfigForTesting = `` /* 150-byte string literal not displayed */
FullValidConfigForTesting is a string representation of a JSON object that contains all fields supported by the notifier Config. It can be used without secrets.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Title string `json:"title,omitempty" yaml:"title,omitempty"` Message string `json:"message,omitempty" yaml:"message,omitempty"` AvatarURL string `json:"avatar_url,omitempty" yaml:"avatar_url,omitempty"` WebhookURL string `json:"url,omitempty" yaml:"url,omitempty"` UseDiscordUsername bool `json:"use_discord_username,omitempty" yaml:"use_discord_username,omitempty"` }
func NewConfig ¶
func NewConfig(jsonData json.RawMessage, decryptFn receivers.DecryptFunc) (Config, error)
Click to show internal directories.
Click to hide internal directories.