sms

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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