Documentation ¶
Index ¶
- type BBoltStore
- func (bbs *BBoltStore) Clear() error
- func (bbs *BBoltStore) Close() error
- func (bbs *BBoltStore) Create(post *downcache.Post) (*downcache.Post, error)
- func (bbs *BBoltStore) Delete(slug string) error
- func (bbs *BBoltStore) GetBySlug(slug string) (*downcache.Post, error)
- func (bbs *BBoltStore) GetTaxonomies() ([]string, error)
- func (bbs *BBoltStore) GetTaxonomyTerms(taxonomy string) ([]string, error)
- func (bbs *BBoltStore) Init() error
- func (bbs *BBoltStore) Search(filter downcache.FilterOptions) (downcache.Paginator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BBoltStore ¶
type BBoltStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(dataDir string, logger *slog.Logger) *BBoltStore
New creates a new DownCacheOld instance.
func (*BBoltStore) Clear ¶
func (bbs *BBoltStore) Clear() error
func (*BBoltStore) Close ¶
func (bbs *BBoltStore) Close() error
func (*BBoltStore) Delete ¶
func (bbs *BBoltStore) Delete(slug string) error
func (*BBoltStore) GetBySlug ¶
func (bbs *BBoltStore) GetBySlug(slug string) (*downcache.Post, error)
func (*BBoltStore) GetTaxonomies ¶
func (bbs *BBoltStore) GetTaxonomies() ([]string, error)
GetTaxonomies returns a list of taxonomies.
func (*BBoltStore) GetTaxonomyTerms ¶
func (bbs *BBoltStore) GetTaxonomyTerms(taxonomy string) ([]string, error)
GetTaxonomyTerms returns a list of terms for a given taxonomy.
func (*BBoltStore) Init ¶
func (bbs *BBoltStore) Init() error
Init initializes the BBolt and Bleve indexes
func (*BBoltStore) Search ¶
func (bbs *BBoltStore) Search(filter downcache.FilterOptions) (downcache.Paginator, error)
Click to show internal directories.
Click to hide internal directories.