sms_mock

package
v0.0.0-...-8122643 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Protocol string = "sms_mock"

Variables

This section is empty.

Functions

This section is empty.

Types

type SmsMock

type SmsMock struct {
	SmsMockConfig
}

func New

func New() *SmsMock

func (*SmsMock) Config

func (s *SmsMock) Config() interface{}

func (*SmsMock) Init

func (s *SmsMock) Init(cfg config.Config, log logger.Logger, vld validator.Validator, configPath ...string) error

func (*SmsMock) Send

func (s *SmsMock) Send(ctx op_context.Context, message string, recipient string, smsID ...string) (*sms.ProviderResponse, error)

type SmsMockConfig

type SmsMockConfig struct {
	sms.ProviderBase
	ALWAYS_FAIL bool
}

Jump to

Keyboard shortcuts

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