Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiWxoa ¶
type EventMessageHandler ¶
type EventMessageHandler func(message *RecvEventMessage) ([]byte, error)
type MessageKind ¶
type MessageKind int
const ( MessageKindUnknown MessageKind = iota MessageKindEvent )
func GetMessageKind ¶
func GetMessageKind(data []byte) (MessageKind, error)
type RecvEventMessage ¶
type RecvEventMessage struct { *RecvMessage Event string EventKey string Ticket string }
type RecvMessage ¶
type RecvMessager ¶
func NewDefaultRecvMessage ¶
func NewDefaultRecvMessage(data []byte) (RecvMessager, error)
func NewEventRecvMessage ¶
func NewEventRecvMessage(data []byte, eventHandlers map[string]EventMessageHandler) (RecvMessager, error)
type SendMessageText ¶
type SendMessager ¶
func NewTemplateSendMessage ¶
func NewTemplateSendMessage(arg *SendMessageTemplateArgument) (SendMessager, error)
Click to show internal directories.
Click to hide internal directories.