Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldAny = iota FieldTree FieldBinary )
Variables ¶
View Source
var ( ErrDBClosed = errors.New("treedb: db closed") ErrDBReadonly = errors.New("treedb: db is readonly") ErrMismatchedType = errors.New("treedb: mismatched type") ErrUnknownCommand = errors.New("treedb: unknown command") ErrInvalidValue = errors.New("treedb: invalid value") )
View Source
var ( ErrDBExist = errors.New("treedb: db existed") ErrDBMissing = errors.New("treedb: db missing") ErrInvalidParam = errors.New("treedb: invalid parameters") ErrDBNoTemplate = errors.New("treedb: template db missing") )
View Source
var ErrCorruptedData = errors.New("treedb: corrupted data")
Functions ¶
This section is empty.
Types ¶
type CacheCommand ¶
func (*CacheCommand) TreeDBCommand ¶
func (*CacheCommand) TreeDBCommand()
type DeleteCommand ¶
func (*DeleteCommand) TreeDBCommand ¶
func (*DeleteCommand) TreeDBCommand()
type Directory ¶
type Directory struct { Dir string // contains filtered or unexported fields }
func (*Directory) Close ¶
func (d *Directory) Close()
Close closes Directory. Ensure that no other calls after closing.
func (*Directory) Open ¶
func (d *Directory) Open(name string, options *OpenOptions, reply chan interface{}) chan interface{}
type GetCommand ¶
func (*GetCommand) TreeDBCommand ¶
func (*GetCommand) TreeDBCommand()
type InvalidPathError ¶
type InvalidPathError struct {
Path string
}
func (*InvalidPathError) Error ¶
func (e *InvalidPathError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Path string
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type NotTreeError ¶
type NotTreeError struct {
Path string
}
func (*NotTreeError) Error ¶
func (e *NotTreeError) Error() string
type OpenOptions ¶
type SetCommand ¶
func (*SetCommand) TreeDBCommand ¶
func (*SetCommand) TreeDBCommand()
type TouchCommand ¶
func (*TouchCommand) TreeDBCommand ¶
func (*TouchCommand) TreeDBCommand()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.