notify

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicNotificationMessage

type BasicNotificationMessage[T any] interface {
	Message() (T, error)
}

BasicNotificationMessage 是一个泛型接口,Message 可以返回不同类型

type Notifier

type Notifier[T any] interface {
	Send(ctx context.Context, message BasicNotificationMessage[T]) (bool, error)
}

Notifier 是一个发送通知的接口,T 是 BasicNotificationMessage 的返回类型

Directories

Path Synopsis
sms

Jump to

Keyboard shortcuts

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