cmd

package
v0.0.0-...-07235e0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Tag 消息broker tag
	Tag = "gateway"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "zim",
	Short: "IM服务",
	Long: `IM集群服务

包括一些模块:
gateway:网关。提供TCP, UDP和WebSocket等接入方式,与客户端
         建立稳定的双向连接。
maintain:网控。实时监控集群各个服务的状态`,
}

RootCmd root命令

Functions

func CountCheckError

func CountCheckError()

CountCheckError 消息校验错误计数加1

func CountError

func CountError()

CountError 错误计数加1

func CountReceive

func CountReceive()

CountReceive 接收计数加1

func CountSend

func CountSend()

CountSend 发送计数加1

func Execute

func Execute()

Execute 执行命令

func HandleHTTP

func HandleHTTP(w http.ResponseWriter, r *http.Request)

HandleHTTP 登入处理

func IsExit

func IsExit() bool

IsExit 判断是否程序是否已经处于退出状态

func Reponse

func Reponse(w http.ResponseWriter, cmd *protocol.Command)

Reponse 发响应

func SetExitFlag

func SetExitFlag()

SetExitFlag 设置退出标志

Types

This section is empty.

Jump to

Keyboard shortcuts

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