Help us shape the future of Go! Take the 2026 Go Developer Survey

notify

package
v0.4.30 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.4.0

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

func NewClient added in v0.4.0

func NewClient(configures ...ClientConfigure) *Client

func (*Client) SendNotification added in v0.4.0

func (c *Client) SendNotification(ctx context.Context, request *SendNotificationRequest) (*SendNotificationResponse, error)

type ClientConfigure added in v0.4.0

type ClientConfigure func(*Client)

func WithLogger added in v0.4.0

func WithLogger(logger *slog.Logger) ClientConfigure

type NotifyService

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

func NewNotifyService

func NewNotifyService(accessRepo accessRepository) *NotifyService

func (*NotifyService) TestPush added in v0.4.0

type SendNotificationRequest added in v0.4.0

type SendNotificationRequest struct {
	// 提供商相关
	Provider               domain.NotificationProviderType
	ProviderAccessConfig   map[string]any
	ProviderExtendedConfig map[string]any

	// 通知相关
	Subject string
	Message string
}

type SendNotificationResponse added in v0.4.0

type SendNotificationResponse struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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