bolt

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudiobookStore

type AudiobookStore struct {
	// contains filtered or unexported fields
}

func NewAudiobookStore

func NewAudiobookStore(pathToDatabaseDir string, opts ...Option) (*AudiobookStore, error)

func (*AudiobookStore) Get

func (*AudiobookStore) GetAll

func (*AudiobookStore) Initialise

func (s *AudiobookStore) Initialise() error

func (*AudiobookStore) IsReady

func (s *AudiobookStore) IsReady(context.Context) bool

func (*AudiobookStore) StoreAll

func (s *AudiobookStore) StoreAll(ctx context.Context, allAudiobooks []audiobooks.Audiobook) error

type Option

type Option func(s *AudiobookStore)

func WithDBBucketName

func WithDBBucketName(name string) Option

func WithDBFile

func WithDBFile(filename string, filePermission int) Option

func WithLogger added in v1.13.3

func WithLogger(logger loggerrific.Logger) Option

Jump to

Keyboard shortcuts

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