Documentation ¶ Index ¶ func NewSmsNotifier(smsSvc Service) notify.Notifier[Sms] type Args type Notifier func (s *Notifier) Send(ctx context.Context, message notify.BasicNotificationMessage[Sms]) (bool, error) type Service type Sms func NewSms(tmpl string, args []Args, numbers ...string) *Sms func (s *Sms) Message() (Sms, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSmsNotifier ¶ func NewSmsNotifier(smsSvc Service) notify.Notifier[Sms] Types ¶ type Args ¶ type Args struct { Val string Name string } type Notifier ¶ type Notifier struct { Service Service } func (*Notifier) Send ¶ func (s *Notifier) Send(ctx context.Context, message notify.BasicNotificationMessage[Sms]) (bool, error) type Service ¶ type Service interface { Send(ctx context.Context, tmpl string, args []Args, numbers ...string) error } type Sms ¶ type Sms struct { // contains filtered or unexported fields } func NewSms ¶ func NewSms(tmpl string, args []Args, numbers ...string) *Sms func (*Sms) Message ¶ func (s *Sms) Message() (Sms, error) Source Files ¶ View all Source files sms.go types.go Directories ¶ Show internal Expand all Path Synopsis aliyun failover retelimit tencent Click to show internal directories. Click to hide internal directories.