pushplus

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifierConfig

type NotifierConfig struct {
	// PushPlus Token
	Token string `json:"token"`
}

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)

Notify 发送通知 参考文档:https://pushplus.plus/doc/guide/api.html

func (*NotifierProvider) WithLogger

func (n *NotifierProvider) WithLogger(logger *slog.Logger) notifier.Notifier

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL