Documentation ¶
Index ¶
- func All(item Item) ([][]byte, error)
- type BucketItem
- type Item
- type Items
- type KeyValue
- type QueryOptions
- type Store
- func (s *Store) CheckSlugForDuplicate(slug string) (string, error)
- func (s *Store) Close() error
- func (s *Store) ContentAll(namespace string) [][]byte
- func (s *Store) Delete(item Item) error
- func (s *Store) Get(item Item) ([]byte, error)
- func (s *Store) NextSequence(item BucketItem) (uint64, error)
- func (s *Store) Query(namespace string, opts QueryOptions) (int, [][]byte)
- func (s *Store) RemoveIndex(slug string) error
- func (s *Store) Set(item Item) error
- func (s *Store) SetIndex(item KeyValue) error
- func (s *Store) Sort(items Items) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketItem ¶
type BucketItem interface {
Bucket() string
}
type Item ¶
type Item interface { BucketItem KeyValue }
type Items ¶
type Items interface { BucketItem KeyValues() []KeyValue }
type QueryOptions ¶
QueryOptions holds options for a query
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func OpenUserStore ¶
func (*Store) CheckSlugForDuplicate ¶
func (*Store) ContentAll ¶
ContentAll retrives all items from the database within the provided namespace
func (*Store) NextSequence ¶
func (s *Store) NextSequence(item BucketItem) (uint64, error)
func (*Store) Query ¶
func (s *Store) Query(namespace string, opts QueryOptions) (int, [][]byte)
Query retrieves a set of content from the db based on options and returns the total number of content in the namespace and the content
func (*Store) RemoveIndex ¶
Click to show internal directories.
Click to hide internal directories.