internal

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ENV = "IOT_MASTER_ALIYUN_"

Variables

This section is empty.

Functions

func Load

func Load() error

func Open

func Open() (err error)

func Send

func Send(phone []string, param map[string]string) error

func SetOptions

func SetOptions(opts Options)

func Store

func Store() error

func Subscribe

func Subscribe()

Types

type Options

type Options struct {
	Id       string `json:"id"`
	Secret   string `json:"secret"`
	Sign     string `json:"sign"`
	Template string `json:"template"`
}

func Default

func Default() Options

func GetOptions

func GetOptions() Options

func (*Options) FromEnv

func (options *Options) FromEnv()

func (*Options) ToEnv

func (options *Options) ToEnv() []string

Jump to

Keyboard shortcuts

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