Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MessageStatus ¶
type MessageStatus int
const ( STATUS_QUEUED MessageStatus = 1 STATUS_SCHULDED MessageStatus = 2 STATUS_SENTTOCENTER MessageStatus = 3 STATUS_SENT MessageStatus = 4 STATUS_FAILED MessageStatus = 5 STATUS_DELIVERED MessageStatus = 6 STATUS_UNDELIVERED MessageStatus = 7 STATUS_FILTERED MessageStatus = 8 STATUS_UNKNOWN MessageStatus = 9 )
type Result ¶
type Result struct {
MessageId string
Status MessageStatus
}
type SmsProvider ¶
type SmsProvider interface {
SendAdminOTP(receiver string, password string) (Result, error)
SendUserOTP(receiver string, password string) (Result, error)
Status(messageId string) (Result, error)
}
func New ¶
func New(cfg cfg_entities.ProviderSMS) SmsProvider
Click to show internal directories.
Click to hide internal directories.