Documentation ¶
Index ¶
- func Kick(uid string) (existed bool, err error)
- func Serve(outerSrvCfg micro.SrvConfig, protoFunc tp.ProtoFunc)
- type Gw
- func (g *Gw) WsKick(args *types.SocketKickArgs) (*types.SocketKickReply, *tp.Status)
- func (g *Gw) WsMpush(args *types.WsMpushArgs) (*types.WsMpushReply, *tp.Status)
- func (g *Gw) WsPush(args *types.WsPushArgs) (*types.WsPushReply, *tp.Status)
- func (g *Gw) WsTotal(*types.WsTotalArgs) (*types.WsTotalReply, *tp.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gw ¶
Gw long connection controller.
func (*Gw) WsKick ¶
func (g *Gw) WsKick(args *types.SocketKickArgs) (*types.SocketKickReply, *tp.Status)
SocketKick kicks the uid offline.
func (*Gw) WsMpush ¶
func (g *Gw) WsMpush(args *types.WsMpushArgs) (*types.WsMpushReply, *tp.Status)
WsMpush multi-push messages to the specified users.
func (*Gw) WsPush ¶
func (g *Gw) WsPush(args *types.WsPushArgs) (*types.WsPushReply, *tp.Status)
WsPush pushes message to the specified user.
func (*Gw) WsTotal ¶
func (g *Gw) WsTotal(*types.WsTotalArgs) (*types.WsTotalReply, *tp.Status)
WsTotal returns the long connections total.
Click to show internal directories.
Click to hide internal directories.