message

package
v0.0.0-...-d9311aa Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Call(serviceMethod string, args *rpc.Args, reply *rpc.Reply) error
	Register(serviceMethod string, handler rpc.Handler) error

	GetServiceManager() *service.Manager
	OnRecvMessage(uin int64, head *pb.MsgCommon_MsgHead, body *pb.IMMsgBody_MsgBody) error
}

type Manager

type Manager struct {
	Daemon
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, d Daemon) *Manager

func (*Manager) ChatDownloadVideo

func (m *Manager) ChatDownloadVideo(uin int64) (*pb.PttShortVideo_RspBody, error)

func (*Manager) ChatUploadPhoto

func (m *Manager) ChatUploadPhoto(uin int64, req *pb.Cmd0X388_ReqBody) (*pb.Cmd0X388_RspBody, error)

func (*Manager) DeleteMessage

func (*Manager) GetCookie

func (m *Manager) GetCookie(k int64) ([]byte, bool)

func (*Manager) GetFlag

func (m *Manager) GetFlag(k int64) (int32, bool)

func (*Manager) GetMessage

func (m *Manager) GetMessage(uin int64) (*pb.MsgService_PbGetMsgResp, error)

func (*Manager) SendMessage

func (*Manager) SetCookie

func (m *Manager) SetCookie(k int64, v []byte) ([]byte, bool)

func (*Manager) SetFlag

func (m *Manager) SetFlag(k int64, v int32) (int32, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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