grpc_client

package
v0.0.0-...-7d768d8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 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 Comet

type Comet struct {
	Ctx    context.Context
	Cancel context.CancelFunc
	// contains filtered or unexported fields
}

Comet is a comet.

func NewComet

func NewComet(in *naming.Instance, c *conf.Comet) (*Comet, error)

NewComet new a comet.

func (*Comet) Broadcast

func (c *Comet) Broadcast(arg *comet.BroadcastReq) (err error)

Broadcast broadcast a message.

func (*Comet) BroadcastRoom

func (c *Comet) BroadcastRoom(arg *comet.BroadcastRoomReq) (err error)

BroadcastRoom broadcast a room message.

func (*Comet) Close

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

Close close the resouces.

func (*Comet) Push

func (c *Comet) Push(arg *comet.PushMsgReq) (err error)

Push push a user message.

Jump to

Keyboard shortcuts

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