Documentation
¶
Index ¶
- func DefaultConfig() config.Configuration
- type Factory
- func (f *Factory) AddFlags(flagSet *flag.FlagSet)
- func (f *Factory) Close() error
- func (f *Factory) CreateDependencyReader() (dependencystore.Reader, 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) InheritSettingsFrom(other storage.Factory)
- func (f *Factory) InitFromViper(v *viper.Viper, _ *zap.Logger)
- func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error
- func (f *Factory) IsArchiveCapable() bool
- func (f *Factory) Purge(ctx context.Context) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
func DefaultConfig() config.Configuration
Types ¶
type Factory ¶
type Factory struct { Options *Options // contains filtered or unexported fields }
Factory implements storage.Factory for Elasticsearch backend.
func NewArchiveFactory ¶
func NewArchiveFactory() *Factory
func NewFactoryWithConfig ¶
func (*Factory) CreateDependencyReader ¶
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error)
CreateDependencyReader implements storage.Factory
func (*Factory) CreateSamplingStore ¶
func (f *Factory) CreateSamplingStore(int) (samplingstore.Store, error)
func (*Factory) CreateSpanReader ¶
CreateSpanReader implements storage.Factory
func (*Factory) CreateSpanWriter ¶
CreateSpanWriter implements storage.Factory
func (*Factory) InheritSettingsFrom ¶
func (f *Factory) InheritSettingsFrom(other storage.Factory)
func (*Factory) InitFromViper ¶
InitFromViper implements plugin.Configurable
func (*Factory) Initialize ¶
Initialize implements storage.Factory.
func (*Factory) IsArchiveCapable ¶
type Options ¶
type Options struct {
// TODO: remove indirection
Config namespaceConfig `mapstructure:",squash"`
}
Options contains various type of Elasticsearch configs and provides the ability to bind them to command line flag and apply overlays, so that some configurations (e.g. archive) may be underspecified and infer the rest of its parameters from primary.
func NewOptions ¶
NewOptions creates a new Options struct.
func (*Options) GetConfig ¶
func (opt *Options) GetConfig() *config.Configuration
GetPrimary returns primary configuration.
func (*Options) InitFromViper ¶
InitFromViper initializes Options with properties from viper