sdk

package
v6.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GwHosts

func GwHosts(setting ...tp.MessageSetting) (*types.GwHosts, *tp.Status)

GwHosts returns the gateway host list.

func Init

func Init(apiVersion string, protoFunc tp.ProtoFunc)

Init initializes a common inner ant client.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL