Documentation
¶
Index ¶
- func GwHosts(setting ...socket.PacketSetting) (*types.GwHosts, *tp.Rerror)
- func Init(apiVersion string, cliCfg ant.CliConfig, protoFunc socket.ProtoFunc, ...)
- func LongConnPush(srvAddr string, args *types.PushLongConnArgs, setting ...socket.PacketSetting) (*types.PushLongConnReply, *tp.Rerror)
- func LongConnTotal(srvAddr string, setting ...socket.PacketSetting) (*types.TotalLongConnReply, *tp.Rerror)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(apiVersion string, cliCfg ant.CliConfig, protoFunc socket.ProtoFunc, etcdClient *etcd.Client)
Init initializes a common inner ant client.
func LongConnPush ¶
func LongConnPush(srvAddr string, args *types.PushLongConnArgs, setting ...socket.PacketSetting) (*types.PushLongConnReply, *tp.Rerror)
LongConnPush pushs the message to the long connection's client user.
func LongConnTotal ¶
func LongConnTotal(srvAddr string, setting ...socket.PacketSetting) (*types.TotalLongConnReply, *tp.Rerror)
LongConnTotal returns the long connections total of the remote server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.