request

package
v0.0.0-...-3cbc9b2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KGetMyName    = "getMyName"    //userId
	KGetHeartBeat = "getHeartBeat" //userId
	KSerListPath  = "/raftX/*"     //userId
)

Variables

View Source
var IncreateTag uint64

Functions

func NewReq

func NewReq(path string, value string, verb uint32) *Request

func NewRespByReq

func NewRespByReq(req *Request, value string, err Err) *Response

func NewRespWatch

func NewRespWatch(path string, value string, tag string, cnt string, updateVerb Verb) *Response

func Tag

func Tag() *string

Types

type ClientRequestItem

type ClientRequestItem struct {
	Req     *Request
	ReqChan chan *Response
}

type ServerRequestItem

type ServerRequestItem struct {
	Req  *Request
	Addr string
}

type ServerResponceItem

type ServerResponceItem struct {
	Resp *Response
	Addr string
}

Jump to

Keyboard shortcuts

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