metathings_sms_sdk

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedSmsSenderDriver = errors.New("unsupported sms sender driver")
)

Functions

func ToSmsSender

func ToSmsSender(ss *SmsSender) func(string, interface{}) error

Types

type DummySmsSender

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

func (*DummySmsSender) SendSms

func (ss *DummySmsSender) SendSms(ctx context.Context, id string, numbers []string, arguments map[string]string) error

type MockSmsSender

type MockSmsSender struct {
	mock.Mock
}

func (*MockSmsSender) SendSms

func (m *MockSmsSender) SendSms(ctx context.Context, id string, numbers []string, arguments map[string]string) error

type PomeloSmsSender

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

func (*PomeloSmsSender) SendSms

func (ss *PomeloSmsSender) SendSms(ctx context.Context, id string, numbers []string, arguments map[string]string) error

type PomeloSmsSenderOption

type PomeloSmsSenderOption struct {
	BaseURL  string
	Insecure bool
}

func NewPomeloSmsSenderOption

func NewPomeloSmsSenderOption() *PomeloSmsSenderOption

type SmsSender

type SmsSender interface {
	SendSms(ctx context.Context, id string, numbers []string, arguments map[string]string) error
}

func NewDummySmsSender

func NewDummySmsSender(args ...interface{}) (SmsSender, error)

func NewPomeloSmsSender

func NewPomeloSmsSender(args ...interface{}) (SmsSender, error)

func NewSmsSender

func NewSmsSender(name string, args ...interface{}) (SmsSender, error)

type SmsSenderFactory

type SmsSenderFactory func(...interface{}) (SmsSender, error)

Jump to

Keyboard shortcuts

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