daemon

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: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectContentType

func DetectContentType(data []byte) string

Types

type Daemon

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

func New

func New(ctx context.Context, cfg *config.Config) *Daemon

func (*Daemon) Call

func (d *Daemon) Call(serviceMethod string, args *rpc.Args, reply *rpc.Reply) error

func (*Daemon) GetAccountManager

func (d *Daemon) GetAccountManager() *account.Manager

func (*Daemon) GetAuthManager

func (d *Daemon) GetAuthManager() *auth.Manager

func (*Daemon) GetChannelManager

func (d *Daemon) GetChannelManager() *channel.Manager

func (*Daemon) GetChatManager

func (d *Daemon) GetChatManager() *chat.Manager

func (*Daemon) GetContactManager

func (d *Daemon) GetContactManager() *contact.Manager

func (*Daemon) GetFakeSource

func (d *Daemon) GetFakeSource(uin int64) *fake.Source

func (*Daemon) GetMessageChannel

func (d *Daemon) GetMessageChannel() chan *penguin.Message

func (*Daemon) GetMessageManager

func (d *Daemon) GetMessageManager() *message.Manager

func (*Daemon) GetServiceManager

func (d *Daemon) GetServiceManager() *service.Manager

func (*Daemon) OnRecvChannelMessage

func (d *Daemon) OnRecvChannelMessage(id int64, recv *pb.Common_Msg) error

func (*Daemon) OnRecvMessage

func (d *Daemon) OnRecvMessage(id int64, head *pb.MsgCommon_MsgHead, body *pb.IMMsgBody_MsgBody) error

func (*Daemon) Register

func (d *Daemon) Register(serviceMethod string, handler rpc.Handler) error

func (*Daemon) Run

func (d *Daemon) Run() error

func (*Daemon) SendChannelMessage

func (d *Daemon) SendChannelMessage(id int64, msg *penguin.Message) error

func (*Daemon) SendMessage

func (d *Daemon) SendMessage(id int64, msg *penguin.Message) error

func (*Daemon) Start

func (d *Daemon) Start(username, password string) error

func (*Daemon) UploadPhotos

func (d *Daemon) UploadPhotos(id int64, chat *penguin.Chat, photos ...*penguin.Photo) error

func (*Daemon) Waiting

func (d *Daemon) Waiting()

Directories

Path Synopsis
pb
pb
pb
dto
pb
pb

Jump to

Keyboard shortcuts

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