Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type DB
- func (db *DB) Cache(path string, timeout int64) error
- func (db *DB) Close() error
- func (db *DB) Delete(path string) error
- func (db *DB) Get(path string, kind FieldType) (interface{}, error)
- func (db *DB) Set(path string, value interface{}) error
- func (db *DB) Touch(path string) error
- func (db *DB) Tree(path string) *Tree
- type DialOptions
- type FieldType
- type OpenOptions
- type Options
- type ResponseTypeError
- type ServerAddressError
- type Tree
- func (t *Tree) Cache(path string, timeout int64) error
- func (t *Tree) Delete(path string) error
- func (t *Tree) Get(path string, kind FieldType) (interface{}, error)
- func (t *Tree) Set(path string, value interface{}) error
- func (t *Tree) Touch(path string) error
- func (t *Tree) Tree(path string) *Tree
Constants ¶
View Source
const ( FieldAny = iota FieldTree FieldBinary )
View Source
const ( CachePathNever = -2 CachePathDelete = -1 CachePathDefault = 0 )
View Source
const (
DefaultChannelCap = 128
)
Variables ¶
View Source
var ( ErrClientClosed = errors.New("treedb: client closed") ErrServerClosed = errors.New("treedb: server closed") ErrIncompatibleVersion = errors.New("treedb: incompatible version") )
View Source
var (
ErrDBClosed = errors.New("treedb: db closed")
)
Functions ¶
This section is empty.
Types ¶
type DialOptions ¶
type DialOptions struct {
ChannelCap int
}
type OpenOptions ¶
type ResponseTypeError ¶
func (*ResponseTypeError) Error ¶
func (e *ResponseTypeError) Error() string
type ServerAddressError ¶
type ServerAddressError struct {
Addr string
}
func (*ServerAddressError) Error ¶
func (e *ServerAddressError) Error() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package protocol is a generated protocol buffer package.
|
Package protocol is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.