Documentation
¶
Overview ¶
Package storedefs contains definitions of the store API.
It is a separate package so that packages that only depend on the store API does not need to depend on the concrete implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatchingCmd = errors.New("no matching command line")
ErrNoMatchingCmd is the error returned when a LastCmd or FirstCmd query completes with no result.
View Source
var NoBlacklist = map[string]struct{}{}
NoBlacklist is an empty blacklist, to be used in GetDirs.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
Cmd is an entry in the command history.
func (Cmd) IsStructMap ¶ added in v0.17.0
func (Cmd) IsStructMap()
type Dir ¶
Dir is an entry in the directory history.
func (Dir) IsStructMap ¶ added in v0.17.0
func (Dir) IsStructMap()
type Store ¶
type Store interface { NextCmdSeq() (int, error) AddCmd(text string) (int, error) DelCmd(seq int) error Cmd(seq int) (string, error) CmdsWithSeq(from, upto int) ([]Cmd, error) NextCmd(from int, prefix string) (Cmd, error) PrevCmd(upto int, prefix string) (Cmd, error) AddDir(dir string, incFactor float64) error DelDir(dir string) error Dirs(blacklist map[string]struct{}) ([]Dir, error) }
Store is an interface satisfied by the storage service.
Click to show internal directories.
Click to hide internal directories.