Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RemoteWriteVersionHeader = "X-Prometheus-Remote-Write-Version" RemoteWriteVersion1HeaderValue = "0.1.0" RemoteWriteVersion20HeaderValue = "2.0.0" )
Taken from prometheus storage/remote package. Including the package just for these constants added a lot of unnecessary imports
Functions ¶
func New ¶
func New(cc types.ConnectionConfig, logger log.Logger, statshub types.StatsHub, requestSignalsFromFileQueue chan types.RequestMoreSignals[types.Datum]) (types.NetworkClient, error)
func NewPending ¶
Types ¶
type MetadataCache ¶
type MetadataCache interface {
GetIfNotSent(key string) (*cachedMetadata, bool)
Set(value types.MetadataDatum) error
Clear()
}
func NewMetadataCache ¶
func NewMetadataCache(size int) (MetadataCache, error)
func NewNoopMetadataCache ¶
func NewNoopMetadataCache() MetadataCache
Click to show internal directories.
Click to hide internal directories.