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) CreateSpanReader() (spanstore.Reader, error)
- func (f *Factory) CreateSpanWriter() (spanstore.Writer, error)
- func (f *Factory) InitFromViper(v *viper.Viper)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) 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 (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
type NamespaceConfig ¶
type NamespaceConfig struct { SpanStoreTTL time.Duration ValueDirectory string KeyDirectory string Ephemeral bool // Setting this to true will ignore ValueDirectory and KeyDirectory SyncWrites bool MaintenanceInterval time.Duration // contains filtered or unexported fields }
NamespaceConfig is badger's internal configuration data
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
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
func (*Options) InitFromViper ¶
InitFromViper initializes Options with properties from viper
Click to show internal directories.
Click to hide internal directories.