data

package
v0.0.0-...-e6e0533 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataReqPacket

type DataReqPacket struct {
	Key       string
	ReadFlag  bool
	TimeLimit time.Time
}

DTO, TCP request for data

type DataRespPacket

type DataRespPacket struct {
	Value interface{} // Data
}

DTO, TCP response with requested data

type DiscoverRequest

type DiscoverRequest struct {
	Id        int    // Command Id
	Key       string // Requested key
	Addr      string // Response point
	TimeLimit time.Time
}

DTO, mixed for req/resp in UDP

type DiscoverResponse

type DiscoverResponse struct {
	Id       int
	Addr     string
	HasValue bool
	Elements int
}

Jump to

Keyboard shortcuts

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