handler

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

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EncodingKey = "WECHAT_ENCODING_KEY"
View Source
const Token = "WECHAT_CHANNEL_TOKEN"

Variables

This section is empty.

Functions

func InitMessageHandler

func InitMessageHandler(appId, appSecret string)

func Message

func Message(ctx context.Context, c *app.RequestContext)

func Ping

func Ping(ctx context.Context, c *app.RequestContext)

Ping .

func Reload

func Reload(_ context.Context, c *app.RequestContext)

Types

type MessageResponse

type MessageResponse struct {
	Text string    `xml:"text"`
	Time time.Time `xml:"time"`
}

Jump to

Keyboard shortcuts

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