Back to godoc.org

Package strategystore

v1.15.1
Latest Go to latest

The highest tagged major version is .

Published: Nov 7, 2019 | License: Apache-2.0 | Module: github.com/Hoggles/TraceAI

Index

type Factory

type Factory interface {
	// Initialize performs internal initialization of the factory.
	Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error

	// CreateStrategyStore initializes the StrategyStore and returns it.
	CreateStrategyStore() (StrategyStore, error)
}

Factory defines an interface for a factory that can create implementations of different strategy storage components. Implementations are also encouraged to implement plugin.Configurable interface.

See also

plugin.Configurable

type StrategyStore

type StrategyStore interface {
	// GetSamplingStrategy retrieves the sampling strategy for the specified service.
	GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)
}

StrategyStore keeps track of service specific sampling strategies.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier