Versions in this module Expand all Collapse all v0 v0.0.3 Apr 9, 2024 v0.0.2 Apr 9, 2024 Changes in this version + type Accessory struct + func (a *Accessory) GetPuppet() wechatypuppet.IPuppetAbstract + func (a *Accessory) GetWechaty() _interface.IWechaty + type Context struct + func NewContext() *Context + func (c *Context) Abort() + func (c *Context) DisableOnce(plugin *Plugin) + func (c *Context) GetData(name string) interface{} + func (c *Context) IsActive(plugin *Plugin) bool + func (c *Context) SetData(name string, value interface{}) + type EventDong func(context *Context, data string) + type EventError func(context *Context, err error) + type EventFriendship func(context *Context, friendship *user.Friendship) + type EventHeartbeat func(context *Context, data string) + type EventLogin func(context *Context, user *user.ContactSelf) + type EventLogout func(context *Context, user *user.ContactSelf, reason string) + type EventMessage func(context *Context, message *user.Message) + type EventReady func(context *Context) + type EventRoomInvite func(context *Context, roomInvitation *user.RoomInvitation) + type EventRoomJoin func(context *Context, room *user.Room, inviteeList []_interface.IContact, ...) + type EventRoomLeave func(context *Context, room *user.Room, leaverList []_interface.IContact, ...) + type EventRoomTopic func(context *Context, room *user.Room, newTopic string, oldTopic string, ...) + type EventScan func(context *Context, qrCode string, status schemas.ScanStatus, data string) + type EventStart func(context *Context) + type EventStop func(context *Context) + type Option struct + type OptionFn func(opts *Option) + func WithIOToken(ioToken string) OptionFn + func WithMemoryCard(memoryCard mc.IMemoryCard) OptionFn + func WithName(name string) OptionFn + func WithPuppet(puppet wp.IPuppetAbstract) OptionFn + func WithPuppetOption(puppetOption wp.Option) OptionFn + func WithPuppetServiceOptions(puppetServiceOptions puppetservice.Options) OptionFn + type Plugin struct + Wechaty *Wechaty + func NewPlugin() *Plugin + func (p *Plugin) IsEnable() bool + func (p *Plugin) OnDong(f EventDong) *Plugin + func (p *Plugin) OnError(f EventError) *Plugin + func (p *Plugin) OnFriendship(f EventFriendship) *Plugin + func (p *Plugin) OnHeartbeat(f EventHeartbeat) *Plugin + func (p *Plugin) OnLogin(f EventLogin) *Plugin + func (p *Plugin) OnLogout(f EventLogout) *Plugin + func (p *Plugin) OnMessage(f EventMessage) *Plugin + func (p *Plugin) OnReady(f EventReady) *Plugin + func (p *Plugin) OnRoomInvite(f EventRoomInvite) *Plugin + func (p *Plugin) OnRoomJoin(f EventRoomJoin) *Plugin + func (p *Plugin) OnRoomLeave(f EventRoomLeave) *Plugin + func (p *Plugin) OnRoomTopic(f EventRoomTopic) *Plugin + func (p *Plugin) OnScan(f EventScan) *Plugin + func (p *Plugin) OnStart(f EventStart) *Plugin + func (p *Plugin) OnStop(f EventStop) *Plugin + func (p *Plugin) SetEnable(value bool) + type PluginEvent struct + type Wechaty struct + func NewWechaty(optFns ...OptionFn) *Wechaty + func (w *Wechaty) Contact() _interface.IContactFactory + func (w *Wechaty) DaemonStart() + func (w *Wechaty) Friendship() _interface.IFriendshipFactory + func (w *Wechaty) Image() _interface.IImageFactory + func (w *Wechaty) Message() _interface.IMessageFactory + func (w *Wechaty) Name() string + func (w *Wechaty) OnDong(f EventDong) *Wechaty + func (w *Wechaty) OnError(f EventError) *Wechaty + func (w *Wechaty) OnFriendship(f EventFriendship) *Wechaty + func (w *Wechaty) OnHeartbeat(f EventHeartbeat) *Wechaty + func (w *Wechaty) OnLogin(f EventLogin) *Wechaty + func (w *Wechaty) OnLogout(f EventLogout) *Wechaty + func (w *Wechaty) OnMessage(f EventMessage) *Wechaty + func (w *Wechaty) OnReady(f EventReady) *Wechaty + func (w *Wechaty) OnRoomInvite(f EventRoomInvite) *Wechaty + func (w *Wechaty) OnRoomJoin(f EventRoomJoin) *Wechaty + func (w *Wechaty) OnRoomLeave(f EventRoomLeave) *Wechaty + func (w *Wechaty) OnRoomTopic(f EventRoomTopic) *Wechaty + func (w *Wechaty) OnScan(f EventScan) *Wechaty + func (w *Wechaty) OnStart(f EventStart) *Wechaty + func (w *Wechaty) OnStop(f EventStop) *Wechaty + func (w *Wechaty) Puppet() wp.IPuppetAbstract + func (w *Wechaty) Room() _interface.IRoomFactory + func (w *Wechaty) RoomInvitation() _interface.IRoomInvitationFactory + func (w *Wechaty) Start() error + func (w *Wechaty) String() string + func (w *Wechaty) Tag() _interface.ITagFactory + func (w *Wechaty) URLLink() _interface.IUrlLinkFactory + func (w *Wechaty) Use(plugin *Plugin) *Wechaty + func (w *Wechaty) UserSelf() _interface.IContactSelf