Documentation ¶
Index ¶
- Variables
- type StorageItem
- func (s *StorageItem) ClearIndex(tx *bolt.Tx, index string) error
- func (s *StorageItem) Commit() error
- func (s *StorageItem) Get(k string) *Value
- func (s *StorageItem) GetAndSetValue(key string, fn func(*Value) (*Value, error)) error
- func (s *StorageItem) GetExternal(k string) ([]byte, error)
- func (s *StorageItem) ID() string
- func (s *StorageItem) Indexes() (out []string)
- func (s *StorageItem) Keys() []string
- func (s *StorageItem) Metadata() *StorageItem
- func (s *StorageItem) Queue(fn func(b *bolt.Bucket) error)
- func (s *StorageItem) SetExternal(k string, dt []byte) error
- func (s *StorageItem) SetValue(b *bolt.Bucket, key string, v *Value) error
- func (s *StorageItem) Storage() *Store
- func (s *StorageItem) Update(fn func(b *bolt.Bucket) error) error
- type Store
- func (s *Store) All() ([]*StorageItem, error)
- func (s *Store) Clear(id string) error
- func (s *Store) Close() error
- func (s *Store) DB() *bolt.DB
- func (s *Store) Get(id string) (*StorageItem, bool)
- func (s *Store) Probe(index string) (bool, error)
- func (s *Store) Search(ctx context.Context, index string) ([]*StorageItem, error)
- func (s *Store) Update(id string, fn func(b *bolt.Bucket) error) error
- func (s *Store) View(id string, fn func(b *bolt.Bucket) error) error
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkipSetValue = errors.New("skip setting metadata value")
Functions ¶
This section is empty.
Types ¶
type StorageItem ¶
type StorageItem struct {
// contains filtered or unexported fields
}
func (*StorageItem) ClearIndex ¶ added in v0.10.0
func (s *StorageItem) ClearIndex(tx *bolt.Tx, index string) error
func (*StorageItem) Commit ¶
func (s *StorageItem) Commit() error
func (*StorageItem) Get ¶
func (s *StorageItem) Get(k string) *Value
func (*StorageItem) GetAndSetValue ¶ added in v0.8.0
func (*StorageItem) GetExternal ¶
func (s *StorageItem) GetExternal(k string) ([]byte, error)
func (*StorageItem) ID ¶
func (s *StorageItem) ID() string
func (*StorageItem) Indexes ¶
func (s *StorageItem) Indexes() (out []string)
func (*StorageItem) Keys ¶
func (s *StorageItem) Keys() []string
func (*StorageItem) Metadata ¶ added in v0.6.0
func (s *StorageItem) Metadata() *StorageItem
func (*StorageItem) SetExternal ¶
func (s *StorageItem) SetExternal(k string, dt []byte) error
func (*StorageItem) Storage ¶
func (s *StorageItem) Storage() *Store
Click to show internal directories.
Click to hide internal directories.