Documentation ¶
Index ¶
- func GwHosts(setting ...tp.MessageSetting) (*types.GwHosts, *tp.Status)
- func Init(apiVersion string, protoFunc tp.ProtoFunc)
- func SetApiVersion(apiVersion string)
- func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...tp.MessageSetting) (*types.SocketMpushReply, *tp.Status)
- func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...tp.MessageSetting) (*types.SocketPushReply, *tp.Status)
- func SocketTotal(srvAddr string, setting ...tp.MessageSetting) (*types.SocketTotalReply, *tp.Status)
- func WsMpush(srvAddr string, args *types.WsMpushArgs, setting ...tp.MessageSetting) (*types.WsMpushReply, *tp.Status)
- func WsPush(srvAddr string, args *types.SocketPushArgs, setting ...tp.MessageSetting) (*types.WsPushReply, *tp.Status)
- func WsTotal(srvAddr string, setting ...tp.MessageSetting) (*types.WsTotalReply, *tp.Status)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetApiVersion ¶ added in v1.1.0
func SetApiVersion(apiVersion string)
SetApiVersion sets API version
func SocketMpush ¶
func SocketMpush(srvAddr string, args *types.SocketMpushArgs, setting ...tp.MessageSetting) (*types.SocketMpushReply, *tp.Status)
SocketMpush multi-push messages to the specified users.
func SocketPush ¶ added in v1.1.0
func SocketPush(srvAddr string, args *types.SocketPushArgs, setting ...tp.MessageSetting) (*types.SocketPushReply, *tp.Status)
SocketPush pushes message to the specified user.
func SocketTotal ¶ added in v1.1.0
func SocketTotal(srvAddr string, setting ...tp.MessageSetting) (*types.SocketTotalReply, *tp.Status)
SocketTotal returns the long connections total of the remote server.
func WsMpush ¶
func WsMpush(srvAddr string, args *types.WsMpushArgs, setting ...tp.MessageSetting) (*types.WsMpushReply, *tp.Status)
WsMpush multi-push messages to the specified users.
func WsPush ¶
func WsPush(srvAddr string, args *types.SocketPushArgs, setting ...tp.MessageSetting) (*types.WsPushReply, *tp.Status)
WsPush pushes message to the specified user.
func WsTotal ¶
func WsTotal(srvAddr string, setting ...tp.MessageSetting) (*types.WsTotalReply, *tp.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.