sms_models

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorMessages = map[StatusCode]string{
	OkStatusCode:                  "Request was successful.",
	MobileInvalidStatusCode:       "The provided mobile number is invalid.",
	MessageInvalidStatusCode:      "The message content is invalid.",
	DateTimeInvalidStatusCode:     "The send date/time is invalid.",
	ResponseParseErrorStatusCode:  "Failed to parse response from SMS service.",
	TokenExpiredStatusCode:        "The token has expired.",
	ServiceUnavailableStatusCode:  "The service is currently unavailable.",
	InternalServerErrorStatusCode: "An internal server error has occurred.",
	UnknownStatusCode:             "An unknown error occurred.",
}

Functions

This section is empty.

Types

type HemendSMSConfig

type HemendSMSConfig struct {
	ApiKey    string
	SecretKey string
	Version   string
	IsTest    bool
	Timezone  string
}

type SMSResponse

type SMSResponse struct {
	StatusCode StatusCode
}

type StatusCode

type StatusCode int
const (
	OkStatusCode StatusCode
	MobileInvalidStatusCode
	MessageInvalidStatusCode
	DateTimeInvalidStatusCode
	ResponseParseErrorStatusCode
	TokenExpiredStatusCode
	ServiceUnavailableStatusCode
	InternalServerErrorStatusCode
	UnknownStatusCode
)

Jump to

Keyboard shortcuts

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