Help us shape the future of Go! Take the 2026 Go Developer Survey

serviceaccount

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMessageHandler

func RegisterMessageHandler(msgKind message.Kind, handler message.Handler) error

Types

type API

type API interface {
	api.API
	VerifyServer(token, signature, timestamp, nonce, echostr string) (string, error) // 校验服务号服务器
	HandleMessage(data []byte) ([]byte, error)                                       // 接收普通/事件消息以及被动回复消息
	SendTemplateMessage(msg *wx.TemplateMessage) error                               // 发送模板消息
}

API 服务号

func New

func New(appId, appSecret string, redisProvider types.RedisProvider) API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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