Versions in this module Expand all Collapse all v0 v0.3.1 Feb 11, 2011 Changes in this version + const Done + const Valid + var ErrCasMismatch = &ResponseError + var ErrInvalidSnap = &ResponseError + var ErrIsDir = &ResponseError + var ErrNoAddrs = os.NewError("no known address") + var ErrNotDir = &ResponseError + type Client struct + Len chan int + Name string + func New(name, addr string) *Client + func (cl *Client) Checkin(id string, cas int64) (int64, os.Error) + func (cl *Client) Del(path string, cas int64) os.Error + func (cl *Client) DelSnap(id int32) os.Error + func (cl *Client) Get(path string, snapId int32) (body []byte, cas int64, err os.Error) + func (cl *Client) Getdir(path string, offset, limit, snapId int32) (*Watch, os.Error) + func (cl *Client) Join(id, addr string) (seqn int64, snapshot string, err os.Error) + func (cl *Client) Noop() os.Error + func (cl *Client) Set(path string, oldCas int64, body []byte) (newCas int64, err os.Error) + func (cl *Client) Snap() (id int32, ver int64, err os.Error) + func (cl *Client) Stat(path string, snapId int32) (int32, int64, os.Error) + func (cl *Client) Walk(glob string, snapId int32) (*Watch, os.Error) + func (cl *Client) Watch(glob string) (*Watch, os.Error) + type Event struct + Body []byte + Cas int64 + Err os.Error + Path string + type R proto.Response + func (r *R) String() string + type ResponseError struct + Code int32 + Detail string + func (r *ResponseError) String() string + type T proto.Request + type Watch struct + C <-chan *Event + func (w *Watch) Cancel() os.Error