Documentation ¶
Index ¶
- Variables
- func FromTreeToDictKey(k string) string
- func FromTreeToMainKey(k string) string
- type DeleteInput
- type GetInput
- type GetOutput
- type Key
- type ParserState
- type PutInput
- type Storage
- func (s *Storage) CacheStats() map[string]interface{}
- func (s *Storage) Close() error
- func (s *Storage) CollectLocalProfiles() error
- func (s *Storage) Delete(di *DeleteInput) error
- func (s *Storage) DeleteDataBefore(threshold time.Time) error
- func (s *Storage) DiskUsage() map[string]bytesize.ByteSize
- func (s *Storage) Get(gi *GetInput) (*GetOutput, error)
- func (s *Storage) GetKeys(cb func(_k string) bool)
- func (s *Storage) GetValues(key string, cb func(v string) bool)
- func (s *Storage) InstallID() string
- func (s *Storage) Put(po *PutInput) error
- func (s *Storage) PutLocal(po *PutInput) error
Constants ¶
This section is empty.
Variables ¶
View Source
var OutOfSpaceThreshold = 512 * bytesize.MB
Functions ¶
func FromTreeToDictKey ¶ added in v0.0.34
FromTreeToDictKey returns app name from tree key k: given tree key "foo{}:0:-62135596790", the call returns "foo".
Before tags support, segment key form (i.e. app name + tags: foo{key=value}) has been used to reference a dictionary (trie).
func FromTreeToMainKey ¶
Types ¶
type DeleteInput ¶ added in v0.0.33
type DeleteInput struct {
Key *Key
}
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) Normalized ¶
func (*Key) SegmentKey ¶
type ParserState ¶
type ParserState int
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CacheStats ¶ added in v0.0.33
func (*Storage) CollectLocalProfiles ¶ added in v0.0.33
func (*Storage) Delete ¶ added in v0.0.33
func (s *Storage) Delete(di *DeleteInput) error
func (*Storage) DeleteDataBefore ¶ added in v0.0.33
Source Files ¶
Click to show internal directories.
Click to hide internal directories.