uplus

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendSMS

func SendSMS(phoneNumber string, message string) error

SendSMS send sms with UPlus provider

func Setup

func Setup()

Setup init UPlus config

Types

type Configure added in v0.1.1

type Configure struct {
	Mode               string `env:"APP_MODE" envDefault:"debug"`
	AccessKey          string `env:"UPLUS_ACCESS_KEY" envDefault:""`
	SecretKey          string `env:"UPLUS_SECRET_KEY" envDefault:""`
	UniversalTelephone string `env:"UNIVERSAL_TELEPHONE" envDefault:""`
	SendFrom           string `env:"SEND_FROM" envDefault:"13332"`
}

Configure config for sms UPlus provider

var Config Configure

Config global defined UPlus config

Jump to

Keyboard shortcuts

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