Documentation
¶
Index ¶
- type Factory
- func (f *Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) Close() error
- func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
- func (f *Factory) CreateLock() (distributedlock.Lock, error)
- func (f *Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
- func (f *Factory) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- func (f *Factory) InitFromOptions(opts Options)
- func (f *Factory) InitFromViper(v *viper.Viper, logger *zap.Logger)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error
- func (f *Factory) Purge() error
- type NamespaceConfig
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
Options *Options
// contains filtered or unexported fields
}
Factory implements storage.Factory for Badger backend.
func NewFactoryWithConfig ¶ added in v1.54.0
func (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateLock ¶ added in v1.52.0
func (f *Factory) CreateLock() (distributedlock.Lock, error)
CreateLock implements storage.SamplingStoreFactory
func (*Factory) CreateSamplingStore ¶ added in v1.51.0
func (f *Factory) CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
CreateSamplingStore implements storage.SamplingStoreFactory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromOptions ¶ added in v1.18.1
InitFromOptions initializes Factory from supplied options
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
func (*Factory) Initialize ¶
Initialize implements storage.Factory
type NamespaceConfig ¶
type NamespaceConfig struct {
SpanStoreTTL time.Duration `mapstructure:"span_store_ttl"`
ValueDirectory string `mapstructure:"directory_value"`
KeyDirectory string `mapstructure:"directory_key"`
// Setting this to true will ignore ValueDirectory and KeyDirectory
Ephemeral bool `mapstructure:"ephemeral"`
SyncWrites bool `mapstructure:"consistency"`
MaintenanceInterval time.Duration `mapstructure:"maintenance_interval"`
MetricsUpdateInterval time.Duration `mapstructure:"metrics_update_interval"`
ReadOnly bool `mapstructure:"read_only"`
// contains filtered or unexported fields
}
NamespaceConfig is badger's internal configuration data
type Options ¶
type Options struct {
Primary NamespaceConfig `mapstructure:",squash"`
}
Options store storage plugin related configs
func NewOptions ¶
NewOptions creates a new Options struct.
func (*Options) GetPrimary ¶
func (opt *Options) GetPrimary() NamespaceConfig
GetPrimary returns the primary namespace configuration