model

package
v0.0.0-...-0118b69 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Uri    string
	User   string
	Secret string
	Ver    float32 //旧版本,现在只实现最新版

}

type Config

type Config struct {
	RpcSecretKey  string
	MonitorLogDir string
	TraceLogPath  string
	RecvTimeOut   int

	Address Address

	/**
	 * 旧的HTTP rpcserver服务配置.
	 * @var array
	 */
	Rpc map[string]oldAddress
}

type Content

type Content struct {
	Version   string      `json:"version"`
	User      string      `json:"user"`
	Password  string      `json:"password"`
	Timestamp int64       `json:"timestamp"`
	Class     string      `json:"class"`
	Method    string      `json:"method"`
	Params    interface{} `json:"params"`
}

type Packet

type Packet struct {
	Data      string            `json:"data"`
	Signature string            `json:"signature"`
	Context   map[string]string `json:"CONTEXT"`
}

Jump to

Keyboard shortcuts

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