Documentation
¶
Overview ¶
Package wechaty ...
Index ¶
- type Accessory
- type EventDong
- type EventError
- type EventFriendship
- type EventHeartbeat
- type EventLogin
- type EventLogout
- type EventMessage
- type EventReady
- type EventRoomInvite
- type EventRoomJoin
- type EventRoomLeave
- type EventRoomTopic
- type EventScan
- type EventStart
- type EventStop
- type Option
- type OptionFn
- type Wechaty
- func (w *Wechaty) Contact() _interface.IContactFactory
- 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) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessory ¶
type Accessory struct {
// contains filtered or unexported fields
}
Accessory ...
func (*Accessory) GetPuppet ¶
func (a *Accessory) GetPuppet() wechatypuppet.IPuppetAbstract
GetPuppet ...
type EventRoomInvite ¶
type EventRoomInvite func(roomInvitation *user.RoomInvitation)
EventRoomInvite ...
type EventRoomJoin ¶
type EventRoomJoin func(room *user.Room, inviteeList []_interface.IContact, inviter _interface.IContact, date time.Time)
EventRoomJoin ...
type EventRoomLeave ¶
type EventRoomLeave func(room *user.Room, leaverList []_interface.IContact, remover _interface.IContact, date time.Time)
EventRoomLeave ...
type EventRoomTopic ¶
type EventRoomTopic func(room *user.Room, newTopic string, oldTopic string, changer _interface.IContact, date time.Time)
EventRoomTopic ...
type EventScan ¶
type EventScan func(qrCode string, status schemas.ScanStatus, data string)
EventScan ...
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Option wechaty option
type OptionFn ¶
type OptionFn func(opts *Option)
OptionFn func
func WithMemoryCard ¶
func WithMemoryCard(memoryCard mc.IMemoryCard) OptionFn
WithMemoryCard with memory card
func WithPuppetOption ¶
WithPuppetOption with puppet option
type Wechaty ¶
type Wechaty struct {
*Option
// contains filtered or unexported fields
}
Wechaty ...
func (*Wechaty) Friendship ¶
func (w *Wechaty) Friendship() _interface.IFriendshipFactory
Friendship ...
func (*Wechaty) OnFriendship ¶
func (w *Wechaty) OnFriendship(f EventFriendship) *Wechaty
OnFriendship ...
func (*Wechaty) OnHeartbeat ¶
func (w *Wechaty) OnHeartbeat(f EventHeartbeat) *Wechaty
OnHeartbeat ...
func (*Wechaty) OnRoomInvite ¶
func (w *Wechaty) OnRoomInvite(f EventRoomInvite) *Wechaty
OnRoomInvite ...
func (*Wechaty) OnRoomLeave ¶
func (w *Wechaty) OnRoomLeave(f EventRoomLeave) *Wechaty
OnRoomLeave ...
func (*Wechaty) OnRoomTopic ¶
func (w *Wechaty) OnRoomTopic(f EventRoomTopic) *Wechaty
OnRoomTopic ...
func (*Wechaty) RoomInvitation ¶
func (w *Wechaty) RoomInvitation() _interface.IRoomInvitationFactory
RoomInvitation ...
Click to show internal directories.
Click to hide internal directories.