Documentation ¶
Index ¶
Constants ¶
View Source
const FullValidConfigForTesting = `` /* 149-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.
View Source
const FullValidSecretsForTesting = `{
"api_secret": "test-secret-secret"
}`
FullValidSecretsForTesting is a string representation of JSON object that contains all fields that can be overridden from secrets
Variables ¶
View Source
var (
// APIURL of where the notification payload is sent. It is public to be overridable in integration tests.
APIURL = "https://msgapi.threema.ch/send_simple"
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GatewayID string `json:"gateway_id,omitempty" yaml:"gateway_id,omitempty"` RecipientID string `json:"recipient_id,omitempty" yaml:"recipient_id,omitempty"` APISecret string `json:"api_secret,omitempty" yaml:"api_secret,omitempty"` Title string `json:"title,omitempty" yaml:"title,omitempty"` Description string `json:"description,omitempty" yaml:"description,omitempty"` }
func NewConfig ¶
func NewConfig(jsonData json.RawMessage, decryptFn receivers.DecryptFunc) (Config, error)
Click to show internal directories.
Click to hide internal directories.