Documentation ¶
Index ¶
- Constants
- type DBLog
- type IProvider
- func NewKavenegarProvider(configService config.IConfig, _ clock.IClock) (IProvider, error)
- func NewLinkMobilityProvider(configService config.IConfig, _ clock.IClock) (IProvider, error)
- func NewLinkMobilityProviderNoConfig(_ config.IConfig, _ clock.IClock) (IProvider, error)
- func NewMobicaProvider(configService config.IConfig, _ clock.IClock) (IProvider, error)
- func NewMobicaProviderNoConfig(_ config.IConfig, _ clock.IClock) (IProvider, error)
- func NewSinchProvider(configService config.IConfig, clockService clock.IClock) (IProvider, error)
- func NewTwilioProvider(configService config.IConfig, _ clock.IClock) (IProvider, error)
- type ISender
- type KavenegarProvider
- type LinkMobilityProvider
- type LogEntity
- type Logger
- type Message
- type MobicaProvider
- type NewProviderFunc
- type Provider
- type Sender
- type SinchProvider
- type TwilioProvider
Constants ¶
View Source
const Kavenegar = "kavenegar"
View Source
const LinkMobility = "link-mobility"
View Source
const Mobica = "mobica"
View Source
const (
Sinch = "sinch"
)
View Source
const Twilio = "twilio"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProvider ¶ added in v1.2.74
func NewKavenegarProvider ¶ added in v1.2.74
func NewLinkMobilityProvider ¶ added in v1.2.74
func NewLinkMobilityProviderNoConfig ¶ added in v1.2.74
func NewMobicaProvider ¶ added in v1.2.74
func NewMobicaProviderNoConfig ¶ added in v1.2.74
func NewSinchProvider ¶ added in v1.2.74
type KavenegarProvider ¶ added in v1.2.74
func (*KavenegarProvider) GetName ¶ added in v1.2.74
func (g *KavenegarProvider) GetName() string
func (*KavenegarProvider) SendSMSMessage ¶ added in v1.2.74
func (g *KavenegarProvider) SendSMSMessage(message *Message) (string, error)
type LinkMobilityProvider ¶ added in v1.2.74
type LinkMobilityProvider struct { Service int Key string Secret string Endpoint string Shortcode int }
func (*LinkMobilityProvider) GetName ¶ added in v1.2.74
func (g *LinkMobilityProvider) GetName() string
func (*LinkMobilityProvider) SendSMSMessage ¶ added in v1.2.74
func (g *LinkMobilityProvider) SendSMSMessage(message *Message) (string, error)
type MobicaProvider ¶ added in v1.2.74
type MobicaProvider struct { Email string Password string Route string From string Endpoint string }
func (*MobicaProvider) GetName ¶ added in v1.2.74
func (g *MobicaProvider) GetName() string
func (*MobicaProvider) SendSMSMessage ¶ added in v1.2.74
func (g *MobicaProvider) SendSMSMessage(message *Message) (string, error)
type NewProviderFunc ¶ added in v1.2.74
type Sender ¶
type Sender struct { ConfigService config.IConfig ClockService clock.IClock ErrorLoggerService errorlogger.ErrorLogger PrimaryProvider IProvider SecondaryProvider IProvider }
type SinchProvider ¶ added in v1.2.74
type SinchProvider struct { Clock clock.IClock AppID string AppSecret string MsgURL string FromNumber string }
func (*SinchProvider) GetName ¶ added in v1.2.74
func (g *SinchProvider) GetName() string
func (*SinchProvider) SendSMSMessage ¶ added in v1.2.74
func (g *SinchProvider) SendSMSMessage(message *Message) (string, error)
type TwilioProvider ¶ added in v1.2.74
func (*TwilioProvider) GetName ¶ added in v1.2.74
func (g *TwilioProvider) GetName() string
func (*TwilioProvider) SendSMSMessage ¶ added in v1.2.74
func (g *TwilioProvider) SendSMSMessage(message *Message) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.