Versions in this module Expand all Collapse all v1 v1.1.1 Dec 29, 2014 v1.1.0 Dec 28, 2014 Changes in this version + var BodyFormatError = errors.New("Invalid body data") + var CloseConnError = errors.New("Close") + var LineTooLongError = errors.New("Request line too long") + func NewSession(rwc io.ReadWriteCloser, handler Handler) + type Handler interface + ServeMemcache func(*Request, *Response) error + type HandlerFunc func(*Request, *Response) error + func (h HandlerFunc) ServeMemcache(req *Request, res *Response) error + type Request struct + Args []string + Command string + func (r *Request) ReadBody(length int) ([]byte, error) + type Response struct + func (r *Response) ClientError(msg string) error + func (r *Response) ServerError(msg string) error + func (r *Response) Status(status string) error + func (r *Response) UnknownCommandError() error + func (r *Response) Value(key string, body []byte) error + func (r *Response) ValueFull(key string, body []byte, flags uint32, cas uint64) error