Documentation
¶
Index ¶
- Variables
- func DisassembleKey(key string) ([]string, error)
- func DisassemblePath(path string) ([]string, error)
- func RegisterClient(scheme string, newFunc NewClientFunc)
- type Action
- type Check
- type Client
- type NewClientFunc
- type OpError
- type Operation
- type Txn
- type TxnError
- type TxnOpResult
- type UsageError
- type Version
- type Watch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OpErrNoEntry = OpError{"no entry"} OpErrEntryExists = OpError{"entry exists"} OpErrEphem = OpError{"attempt to create a child of ephemeral node"} )
Functions ¶
func DisassembleKey ¶
func DisassemblePath ¶
func RegisterClient ¶
func RegisterClient(scheme string, newFunc NewClientFunc)
Types ¶
type Client ¶
type Client interface {
Create(key string, value []byte, lease bool) (Version, error)
Set(key string, value []byte) (Version, error)
Cas(key string, value []byte, ver Version) (Version, error)
Erase(key string, ver Version) error
Exists(key string, watch bool) (Version, Watch, error)
Get(key string, watch bool) (Version, []byte, Watch, error)
Children(key string, watch bool) ([]string, Watch, error)
Commit(txn Txn) ([]TxnOpResult, error)
Close()
}
type OpError ¶
type OpError struct {
// contains filtered or unexported fields
}
This (non-transaction) operation could possibly have successed, but failed.
type TxnOpResult ¶
type UsageError ¶
type UsageError struct {
// contains filtered or unexported fields
}
This operation could not possibly have successed: for example, a key or address are invalid.
func (UsageError) Error ¶
func (e UsageError) Error() string
Click to show internal directories.
Click to hide internal directories.