options

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultBBoltFile is the default bbolt Cache filename
	DefaultBBoltFile = "trickster.db"
	// DefaultBBoltBucket is the default bbolt Cache bucket name
	DefaultBBoltBucket = "trickster"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Filename represents the filename (including path) of the BotlDB database
	Filename string `yaml:"filename,omitempty"`
	// Bucket represents the name of the bucket within BBolt under which Trickster's keys will be stored.
	Bucket string `yaml:"bucket,omitempty"`
}

Options is a collection of Configurations for storing cached data on the Filesystem

func New

func New() *Options

New returns a reference to a new bbolt Options

func (*Options) Equal

func (o *Options) Equal(o2 *Options) bool

Equal returns true if all values in the Options are identical

func (*Options) UnmarshalYAML

func (o *Options) UnmarshalYAML(unmarshal func(any) error) error

Jump to

Keyboard shortcuts

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