yunpian

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewYunPian

func NewYunPian(opts ...Option) sms.Server

NewYunPian ...

Types

type Option

type Option func(*Options)

func WithDebug

func WithDebug(debug bool) Option

func WithKey

func WithKey(key string) Option

type Options

type Options struct {
	Key   string
	Debug bool
}

Options ...

type YunPian

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

YunPian ...

func (*YunPian) Assignment

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

Assignment ...

func (*YunPian) Debug

func (m *YunPian) Debug() bool

Debug ...

func (*YunPian) Init

func (m *YunPian) Init(opts ...Option)

func (*YunPian) Send

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

Send ...

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