bboltstore

package module
v0.0.0-...-f2c3eda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) Create

func (bbs *BBoltStore) Create(post *downcache.Post) (*downcache.Post, 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL