Documentation ¶
Index ¶
- func GwHosts(setting ...erpc.MessageSetting) (*types.GwHosts, *erpc.Status)
- func Init(apiVersion string, protoFunc erpc.ProtoFunc)
- func SetApiVersion(apiVersion string)
- func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...erpc.MessageSetting) (*types.SocketMpushReply, *erpc.Status)
- func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...erpc.MessageSetting) (*types.SocketPushReply, *erpc.Status)
- func SocketTotal(srvAddr string, setting ...erpc.MessageSetting) (*types.SocketTotalReply, *erpc.Status)
- func WsMpush(srvAddr string, args *types.WsMpushArgs, setting ...erpc.MessageSetting) (*types.WsMpushReply, *erpc.Status)
- func WsPush(srvAddr string, args *types.SocketPushArgs, setting ...erpc.MessageSetting) (*types.WsPushReply, *erpc.Status)
- func WsTotal(srvAddr string, setting ...erpc.MessageSetting) (*types.WsTotalReply, *erpc.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(apiVersion string, protoFunc erpc.ProtoFunc)
Init initializes a common inner ant client.
func SocketMpush ¶
func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...erpc.MessageSetting) (*types.SocketMpushReply, *erpc.Status)
SocketMpush multi-push messages to the specified users.
func SocketPush ¶
func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...erpc.MessageSetting) (*types.SocketPushReply, *erpc.Status)
SocketPush pushes message to the specified user.
func SocketTotal ¶
func SocketTotal(srvAddr string, setting ...erpc.MessageSetting) (*types.SocketTotalReply, *erpc.Status)
SocketTotal returns the long connections total of the remote server.
func WsMpush ¶
func WsMpush(srvAddr string, args *types.WsMpushArgs, setting ...erpc.MessageSetting) (*types.WsMpushReply, *erpc.Status)
WsMpush multi-push messages to the specified users.
func WsPush ¶
func WsPush(srvAddr string, args *types.SocketPushArgs, setting ...erpc.MessageSetting) (*types.WsPushReply, *erpc.Status)
WsPush pushes message to the specified user.
func WsTotal ¶
func WsTotal(srvAddr string, setting ...erpc.MessageSetting) (*types.WsTotalReply, *erpc.Status)
WsTotal returns the long connections total of the remote server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.