Documentation ¶
Index ¶
- type Storage
- func (db *Storage) Active() bool
- func (db *Storage) Clear()
- func (db *Storage) Close()
- func (db *Storage) Del(path string) error
- func (db *Storage) Get(path string) ([]byte, error)
- func (db *Storage) GetAndLock(path string) ([]byte, error)
- func (db *Storage) GetDecodedList(path string) ([]meta.Object, error)
- func (db *Storage) GetDescending(path string) ([]byte, error)
- func (db *Storage) GetN(path string, limit int) ([]meta.Object, error)
- func (db *Storage) GetNAscending(path string, limit int) ([]meta.Object, error)
- func (db *Storage) GetNRange(path string, limit int, from, to int64) ([]meta.Object, error)
- func (db *Storage) Keys() ([]byte, error)
- func (db *Storage) KeysRange(path string, from, to int64) ([]string, error)
- func (db *Storage) Peek(key string, now int64) (int64, int64)
- func (db *Storage) Set(path string, data json.RawMessage) (string, error)
- func (db *Storage) SetAndUnlock(path string, data json.RawMessage) (string, error)
- func (db *Storage) SetForce(path string, data json.RawMessage, created int64, updated int64) (string, error)
- func (db *Storage) Start(storageOpt ooo.StorageOpt) error
- func (db *Storage) Unlock(path string) error
- func (db *Storage) Watch() ooo.StorageChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { Path string // contains filtered or unexported fields }
Storage composition of Database interface
func (*Storage) GetDecodedList ¶
GetDecodedList force base64 decoding and bypass sorting
func (*Storage) GetNAscending ¶
func (*Storage) GetNRange ¶
GetNRange get last N elements of a path related value(s) for a given time range
func (*Storage) SetAndUnlock ¶
func (*Storage) SetForce ¶
func (db *Storage) SetForce(path string, data json.RawMessage, created int64, updated int64) (string, error)
SetForce set entries on a pivot instance (force created/updated values)
Click to show internal directories.
Click to hide internal directories.