invoker

package
v0.0.0-...-50b78f6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CometInvoker

type CometInvoker struct {
	Cancel context.CancelFunc

	RoutineNum uint64
	// contains filtered or unexported fields
}

CometInvoker 调用comet的服务

func NewCometInvoker

func NewCometInvoker(serverId, grpcAddr string, conf *conf.CometInvoker) (*CometInvoker, error)

func (*CometInvoker) Close

func (c *CometInvoker) Close() (err error)

Close 关闭(暂时没有任何的调用地方) - 确保所有channel的内容消费完毕后,再继续往下走 - 如果超时时间内还没消费完,也继续往下走

func (*CometInvoker) Run

func (c *CometInvoker) Run(i int)

func (*CometInvoker) SendToAll

func (c *CometInvoker) SendToAll(arg *pb.SendToAllReq) (err error)

func (*CometInvoker) SendToRoom

func (c *CometInvoker) SendToRoom(arg *pb.SendToRoomReq) (err error)

func (*CometInvoker) SendToUsers

func (c *CometInvoker) SendToUsers(arg *pb.SendToUsersReq) (err error)

Jump to

Keyboard shortcuts

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