protocol

package
v0.0.0-...-53e0952 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

README

协议文档

A_ 为Agent发送给Center的指令 C_ 为Center发送给Agent的指令

Documentation

Index

Constants

View Source
const (
	A_PING_INDICATES          = 0x8000
	C_PONG_INDICATES          = 0xF000
	A_MACHINE_INFO_INDICATES  = 0x8001
	C_MACHINE_INFO_INDICATES  = 0xF001
	A_REALTIME_INFO_INDICATES = 0x8002
	C_REALTIME_INFO_INDICATES = 0xF002
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// contains filtered or unexported fields
}

func NewCmd

func NewCmd(indicates uint32) *Cmd

func (*Cmd) GetContent

func (c *Cmd) GetContent() interface{}

func (*Cmd) GetIndicates

func (c *Cmd) GetIndicates() uint32

func (*Cmd) GetReport

func (c *Cmd) GetReport() interface{}

func (*Cmd) SetContent

func (c *Cmd) SetContent(content interface{})

func (*Cmd) SetIndicates

func (c *Cmd) SetIndicates(indicates uint32)

func (*Cmd) SetReport

func (c *Cmd) SetReport(report interface{})

type CmdInterface

type CmdInterface interface {
	GetIndicates() uint16
	GetContent() interface{}
	GetReport() interface{}
	SetIndicates(indicates uint16)
	SetContent(content interface{})
	SetReport(report interface{})
}

type Ping

type Ping struct {
	Time uint64 `json:"time"`
}

Jump to

Keyboard shortcuts

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