Documentation ¶
Index ¶
- func GwHosts(setting ...socket.PacketSetting) (*types.GwHosts, *tp.Rerror)
- func Init(apiVersion string, cliCfg micro.CliConfig, protoFunc socket.ProtoFunc, ...)
- func SetApiVersion(apiVersion string)
- func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...socket.PacketSetting) (*types.SocketMpushReply, *tp.Rerror)
- 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 GwHosts ¶
GwHosts returns the gateway host list.
func Init ¶
func Init(apiVersion string, cliCfg micro.CliConfig, protoFunc socket.ProtoFunc, etcdClient *etcd.Client)
Init initializes a common inner ant client.
func SocketMpush ¶
func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...socket.PacketSetting) (*types.SocketMpushReply, *tp.Rerror)
SocketMpush multi-push messages to the specified users.
func SocketPush ¶
func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...socket.PacketSetting) (*types.SocketPushReply, *tp.Rerror)
SocketPush pushes message to the specified user.
func SocketTotal ¶
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.