aliyun

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Access      string `json:"access" toml:"access"`
	Secret      string `json:"secret" toml:"secret"`
	CNTmpl      string `json:"cn_tmpl" toml:"cn_tmpl"`
	OverseaTmpl string `json:"oversea_tmpl" toml:"oversea_tmpl"`
	SignName    string `json:"sign_name" toml:"sign_name"`
}

func (*Config) Decrypt

func (c *Config) Decrypt() error

type SMS

type SMS struct {
	// contains filtered or unexported fields
}

func NewAliSMS

func NewAliSMS(cnf *Config) (*SMS, error)

func (*SMS) SendCode

func (s *SMS) SendCode(areaCode, phone, code string) error

Jump to

Keyboard shortcuts

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