sender

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

type DingTalk struct {
}

func NewDingTalk

func NewDingTalk() *DingTalk

func (*DingTalk) Send

func (d *DingTalk) Send(token string, content, msgType string) error

type Weixin

type Weixin struct {
	CorpID         string
	Secret         string
	AgentID        string
	EncodingAESKey string
	// contains filtered or unexported fields
}

func NewWeixin

func NewWeixin(corpId, secret string) *Weixin

func (Weixin) Auth

func (wx Weixin) Auth(echostr string) ([]byte, error)

func (Weixin) GetAccessToken

func (wx Weixin) GetAccessToken()

GetAccessToken 从微信获取 AccessToken

func (Weixin) Send

func (wx Weixin) Send(tos string, message string) error

Jump to

Keyboard shortcuts

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