notify

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 7 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{}

func NewNotifyService

func NewNotifyService() *NotifyService

func (*NotifyService) TestPush added in v0.4.0

func (n *NotifyService) TestPush(ctx context.Context, req *dtos.NotifyTestPushReq) error

type SendNotificationRequest added in v0.4.0

type SendNotificationRequest struct {
	// 提供商相关
	Provider               string
	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