sms

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHTTP = errors.New("")
	ErrAPI  = errors.New("")
	ErrMisc = errors.New("")
)

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)
}

Jump to

Keyboard shortcuts

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