provider

package
v0.0.0-...-0f6a860 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignContent

func SignContent(sign, content string) string

SignContent ...

Types

type Driver

type Driver interface {
	Send(mobile, content string) (string, error)
	Assignment(content string, value ...string) string
	String() string
	GetDebug() bool
}

Driver ...

func NewYunPian

func NewYunPian(name, key string, debug bool) Driver

NewYunPian ...

type YunPian

type YunPian struct {
	Name   string
	APIKey string
	Debug  bool
}

YunPian ...

func (*YunPian) Assignment

func (m *YunPian) Assignment(content string, value ...string) string

Assignment ...

func (*YunPian) GetDebug

func (m *YunPian) GetDebug() bool

GetDebug ...

func (*YunPian) Send

func (m *YunPian) Send(mobile, content string) (string, error)

Send ...

func (*YunPian) Send2

func (m *YunPian) Send2(mobile, content string) (string, error)

Send2 ...

func (*YunPian) String

func (m *YunPian) String() string

String ...

Jump to

Keyboard shortcuts

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