Documentation ¶
Index ¶
- Constants
- Variables
- type 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
- type R
- type ResponseError
- type T
- type Watch
Constants ¶
View Source
const ( Valid = 1 << iota Done )
Variables ¶
View Source
var ( ErrNotDir = &ResponseError{proto.Response_NOTDIR, "not a directory"} ErrIsDir = &ResponseError{proto.Response_ISDIR, "is a directory"} ErrCasMismatch = &ResponseError{proto.Response_CAS_MISMATCH, "cas mismatch"} ErrInvalidSnap = &ResponseError{proto.Response_INVALID_SNAP, "invalid snapshot id"} )
Response errors
View Source
var (
ErrNoAddrs = os.NewError("no known address")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Get ¶
Returns the body and CAS token of the file at path. If snapId is 0, uses the current state, otherwise, snapId must be a value previously returned from Snap. If path does not denote a file, returns an error.
type ResponseError ¶
func (*ResponseError) String ¶
func (r *ResponseError) String() string
Click to show internal directories.
Click to hide internal directories.