Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifierConfig ¶
type NotifierConfig struct {
// Gotify 服务地址
// 示例:https://gotify.example.com
Url string `json:"url"`
// Gotify Token
Token string `json:"token"`
// Gotify 消息优先级
Priority int64 `json:"priority"`
}
type NotifierProvider ¶
type NotifierProvider struct {
// contains filtered or unexported fields
}
func NewNotifier ¶
func NewNotifier(config *NotifierConfig) (*NotifierProvider, error)
func (*NotifierProvider) Notify ¶
func (n *NotifierProvider) Notify(ctx context.Context, subject string, message string) (res *notifier.NotifyResult, err error)
func (*NotifierProvider) WithLogger ¶
func (n *NotifierProvider) WithLogger(logger *slog.Logger) notifier.Notifier
Click to show internal directories.
Click to hide internal directories.