sms

package
v0.0.0-...-ed98140 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: GPL-3.0 Imports: 5 Imported by: 4

README

Package sms

Core (domain) of the application.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMessageService

type IMessageService interface {
	SetText(string) error
	GetText() string
	SetOption(name string, value interface{})
	FindOption(name string) (value interface{}, exists bool)
	ListOptionByName() []string
}

func NewMessage

func NewMessage() IMessageService

type IPhonenumberService

type IPhonenumberService interface {
	Get() string
	Set(string) error
}

func NewPhonenumber

func NewPhonenumber() IPhonenumberService

type IProviderRepositoryService

type IProviderRepositoryService interface {
	Add(IProviderService)
	Exists(name string) bool
	FindByName(name string) IProviderService
	ListByName() []string
}

func GetProviderRepository

func GetProviderRepository() IProviderRepositoryService

type IProviderService

type IProviderService interface {
	Info() ProviderInfo
	Config(*viper.Viper)
	Send(IMessageService, ...IPhonenumberService) error
}

type ISmsService

type ISmsService interface {
	SendRaw(text string, phoneNumbers ...string) error
}

func NewSmsService

func NewSmsService(provider IProviderService) ISmsService

type PhonenumberList

type PhonenumberList []IPhonenumberService

type ProviderInfo

type ProviderInfo struct {
	Name             string
	Version          string
	Authors          string
	Site             string
	Help             string
	ShortDescription string
	LongDescription  string
}

Jump to

Keyboard shortcuts

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