gateway

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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
}

func NewFactory

func NewFactory() *Factory

func (*Factory) AddFlags

func (f *Factory) AddFlags(flagSet *flag.FlagSet)

func (*Factory) CreateWriter

func (f *Factory) CreateWriter() (metricstore.Writer, error)

func (*Factory) InitFromViper

func (f *Factory) InitFromViper(v *viper.Viper)

func (*Factory) Initialize

func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) error

type MetricWriter

type MetricWriter struct {
	// contains filtered or unexported fields
}

func NewMetricWriter

func NewMetricWriter(p *MetricWriterParams) (*MetricWriter, error)

func (*MetricWriter) WriteMetric

func (m *MetricWriter) WriteMetric(metric []prompb.TimeSeries) error

type MetricWriterParams

type MetricWriterParams struct {
	Logger *zap.Logger
	// contains filtered or unexported fields
}

type Options

type Options struct {
	grpc.ConnBuilder
}

func NewOptions

func NewOptions() *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL