Documentation ¶
Index ¶
- Constants
- Variables
- func NewReq(path string, value string, verb uint32) *Request
- func NewRespByReq(req *Request, value string, err Err) *Response
- func NewRespWatch(path string, value string, tag string, cnt string, updateVerb Verb) *Response
- func Tag() *string
- type ClientRequestItem
- type ServerRequestItem
- type ServerResponceItem
Constants ¶
View Source
const ( KGetMyName = "getMyName" //userId KGetHeartBeat = "getHeartBeat" //userId KSerListPath = "/raftX/*" //userId )
Variables ¶
View Source
var IncreateTag uint64
Functions ¶
func NewRespByReq ¶
func NewRespByReq(req *Request, value string, err Err) *Response
func NewRespWatch ¶
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 }
Click to show internal directories.
Click to hide internal directories.