sms

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInvokerCfg = InvokerCfg{
	Debug:        true,
	Mode:         "alibaba",
	Area:         "ap-guangzhou",
	AccessKeyId:  "",
	AccessSecret: "",

	Domain:  "",
	Method:  "",
	Sign:    "",
	TimeOut: 5,
}

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

Types

type Client

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

func Invoker

func Invoker(name string) *Client

invoker

func (*Client) Push

func (c *Client) Push(param map[string]string) (*standard.Response, error)

type InvokerCfg

type InvokerCfg struct {
	Debug        bool   `ini:"debug"`
	Mode         string `ini:"mode"`
	Area         string `ini:"area"`
	Domain       string `ini:"domain"`
	Method       string `ini:"method"`
	Sign         string `ini:"sign"`
	TimeOut      int    `ini:"time_out"`
	AccessKeyId  string `ini:"accessKeyId"`
	AccessSecret string `ini:"accessSecret"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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