Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifierProvider ¶
type NotifierProvider struct {
// contains filtered or unexported fields
}
func NewNotifierProvider ¶
func NewNotifierProvider(config *NotifierProviderConfig) (*NotifierProvider, error)
func (*NotifierProvider) Notify ¶
func (n *NotifierProvider) Notify(ctx context.Context, subject string, message string) (*core.NotifyResult, error)
func (*NotifierProvider) SetLogger ¶
func (n *NotifierProvider) SetLogger(logger *slog.Logger)
type NotifierProviderConfig ¶
type NotifierProviderConfig struct {
// PushPlus Token。
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.