Documentation
¶
Index ¶
- func GwHosts(setting ...socket.PacketSetting) (*types.GwHosts, *tp.Rerror)
- func Init(apiVersion string, cliCfg ant.CliConfig, protoFunc socket.ProtoFunc, ...)
- func SetApiVersion(apiVersion string)
- func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...socket.PacketSetting) (*types.SocketPushReply, *tp.Rerror)
- func SocketTotal(srvAddr string, setting ...socket.PacketSetting) (*types.SocketTotalReply, *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 SetApiVersion ¶ added in v1.1.0
func SetApiVersion(apiVersion string)
SetApiVersion sets API version
func SocketPush ¶ added in v1.1.0
func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...socket.PacketSetting) (*types.SocketPushReply, *tp.Rerror)
SocketPush pushs the message to the long connection's client user.
func SocketTotal ¶ added in v1.1.0
func SocketTotal(srvAddr string, setting ...socket.PacketSetting) (*types.SocketTotalReply, *tp.Rerror)
SocketTotal returns the long connections total of the remote server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.