Documentation ¶
Index ¶
- type StorageItem
- func (s *StorageItem) Commit() error
- func (s *StorageItem) Get(k string) *Value
- 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
- func (s *StorageItem) View(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(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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageItem ¶
type StorageItem struct {
// contains filtered or unexported fields
}
func (*StorageItem) Commit ¶
func (s *StorageItem) Commit() error
func (*StorageItem) Get ¶
func (s *StorageItem) Get(k string) *Value
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.4
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.