syncer

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegisteredMetricSyncers

func GetRegisteredMetricSyncers() map[string]SyncerInitFunc

func RegisterMetricSyncInitializers

func RegisterMetricSyncInitializers(plugin string, f SyncerInitFunc)

Types

type CustomMetricSyncer

type CustomMetricSyncer interface {
	Name() string
	Run(ctx context.Context)
}

CustomMetricSyncer is used as a common implementation for custom-metrics emitter

type SyncerInitFunc

type SyncerInitFunc func(conf *config.Configuration, extraConf interface{},
	metricEmitter metrics.MetricEmitter, emitterPool metricspool.MetricsEmitterPool,
	metaServer *metaserver.MetaServer, metaReader metacache.MetaReader) (CustomMetricSyncer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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