Documentation ¶
Index ¶
Constants ¶
View Source
const BearerTokenKey = "bearer.token"
BearerTokenKey is the string literal used internally in the implementation of this context.
View Source
const StoragePropagationKey = "storage.propagate.token"
StoragePropagationKey is a key for viper configuration to pass this option to storage plugins.
Variables ¶
This section is empty.
Functions ¶
func ContextWithBearerToken ¶
ContextWithBearerToken set bearer token in context
Types ¶
type CompositeWriter ¶
type CompositeWriter struct {
// contains filtered or unexported fields
}
func NewCompositeWriter ¶
func NewCompositeWriter(metricWriters ...Writer) *CompositeWriter
NewCompositeWriter creates a CompositeWriter
func (*CompositeWriter) WriteMetric ¶
func (c *CompositeWriter) WriteMetric(metrics []prompb.TimeSeries) error
WriteMetric calls WriteMetric on each metric writer. It will sum up failures, it is not transactional
type Writer ¶
type Writer interface {
WriteMetric(metric []prompb.TimeSeries) error
}
Click to show internal directories.
Click to hide internal directories.