sdk

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GwHosts

func GwHosts(setting ...socket.PacketSetting) (*types.GwHosts, *tp.Rerror)

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 SetApiVersion

func SetApiVersion(apiVersion string)

SetApiVersion sets API version

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.

Jump to

Keyboard shortcuts

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