Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgHandler ¶
type MsgHandler struct {
// contains filtered or unexported fields
}
func GetMsgHandler ¶
func GetMsgHandler() *MsgHandler
func (*MsgHandler) Handle ¶
func (m *MsgHandler) Handle(msgName MsgName, data interface{})
func (*MsgHandler) On ¶
func (m *MsgHandler) On(msgName MsgName, handler Handler)
type MsgLogicFunc ¶
type MsgLogicFunc func(msg *Msg)
type Wechat ¶
type Wechat struct { WId string WcId string Options WechatOptions WkteamApi *wkteam.WkteamApi MsgHandler *MsgHandler // 消息处理器 ContactList map[string]entity.ContactEntity }
func GetWechatInstance ¶
func GetWechatInstance() *Wechat
func NewWechat ¶
func NewWechat(options WechatOptions) *Wechat
func (*Wechat) On ¶
func (w *Wechat) On(msgName MsgName, handler MsgLogicFunc)
type WechatOptions ¶
Click to show internal directories.
Click to hide internal directories.