serverchan

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifierConfig added in v0.3.0

type NotifierConfig struct {
	// ServerChan 服务地址。
	ServerUrl string `json:"serverUrl"`
}

type NotifierProvider added in v0.3.0

type NotifierProvider struct {
	// contains filtered or unexported fields
}

func NewNotifier added in v0.3.0

func NewNotifier(config *NotifierConfig) (*NotifierProvider, error)

func (*NotifierProvider) Notify added in v0.3.0

func (n *NotifierProvider) Notify(ctx context.Context, subject string, message string) (res *notifier.NotifyResult, err error)

func (*NotifierProvider) WithLogger added in v0.3.5

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