Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfig = fmt.Errorf("no notify config")
Functions ¶
Types ¶
type Config ¶
type Config struct { DingtalkConfig `yaml:",squash"` TelegramConfig `yaml:",squash"` }
type DingtalkConfig ¶
type DingtalkConfig struct { Token *string `json:"ntfy.dingtalk.token" yaml:"ntfy.dingtalk.token"` Secret string `json:"ntfy.dingtalk.secret" yaml:"ntfy.dingtalk.secret"` }
func (DingtalkConfig) Name ¶
func (DingtalkConfig) Name() string
func (DingtalkConfig) Sign ¶
func (c DingtalkConfig) Sign() (string, string)
type TelegramConfig ¶
type TelegramConfig struct { Token *string `json:"ntfy.telegram.token" yaml:"ntfy.telegram.token"` ChatId string `json:"ntfy.telegram.chat_id" yaml:"ntfy.telegram.chat_id"` }
func (TelegramConfig) Name ¶
func (TelegramConfig) Name() string
Click to show internal directories.
Click to hide internal directories.