network

package
v0.0.0-...-92af63e Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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

func NewPending(shards int, defaultCapacity int) *pending

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

Jump to

Keyboard shortcuts

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