sms_provider_factory

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder func() sms.Provider

type DefaultFactory

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

func NewDefaultFactory

func NewDefaultFactory() *DefaultFactory

func (*DefaultFactory) AddBuilder

func (f *DefaultFactory) AddBuilder(protocol string, builder Builder)

func (*DefaultFactory) Create

func (f *DefaultFactory) Create(protocol string) (sms.Provider, error)

type MockFactory

type MockFactory struct{}

func (*MockFactory) Create

func (f *MockFactory) Create(protocol string) (sms.Provider, error)

Jump to

Keyboard shortcuts

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