Documentation ¶
Index ¶
- type Config
- type Directories
- type Factory
- func (f *Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) Close() error
- func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
- func (*Factory) CreateLock() (distributedlock.Lock, error)
- func (f *Factory) CreateSamplingStore(int) (samplingstore.Store, error)
- func (f *Factory) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- 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(_ context.Context) error
- type TTL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.61.0
type Config struct { // TTL holds time-to-live configuration for the badger store. TTL TTL `mapstructure:"ttl"` // Directories contains the configuration for where items are stored. Ephemeral must be // set to false for this configuration to take effect. Directories Directories `mapstructure:"directories"` // Ephemeral, if set to true, will store data in a temporary file system. // If set to true, the configuration in Directories is ignored. Ephemeral bool `mapstructure:"ephemeral"` // SyncWrites, if set to true, will immediately sync all writes to disk. Note that // setting this field to true will affect write performance. SyncWrites bool `mapstructure:"consistency"` // MaintenanceInterval is the regular interval after which a maintenance job is // run on the values in the store. MaintenanceInterval time.Duration `mapstructure:"maintenance_interval"` // MetricsUpdateInterval is the regular interval after which metrics are collected // by Jaeger. MetricsUpdateInterval time.Duration `mapstructure:"metrics_update_interval"` // ReadOnly opens the data store in read-only mode. Multiple instances can open the same // store in read-only mode. Values still in the write-ahead-log must be replayed before opening. ReadOnly bool `mapstructure:"read_only"` }
Config is badger's internal configuration data.
func DefaultConfig ¶ added in v1.61.0
func DefaultConfig() *Config
func (*Config) InitFromViper ¶ added in v1.61.0
InitFromViper initializes Config with properties from viper.
type Directories ¶ added in v1.61.0
type Factory ¶
type Factory struct { Config *Config // 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 (*Factory) CreateLock() (distributedlock.Lock, error)
CreateLock implements storage.SamplingStoreFactory
func (*Factory) CreateSamplingStore ¶ added in v1.51.0
func (f *Factory) CreateSamplingStore(int) (samplingstore.Store, error)
CreateSamplingStore implements storage.SamplingStoreFactory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
func (*Factory) Initialize ¶
Initialize implements storage.Factory
Click to show internal directories.
Click to hide internal directories.