tests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestConfigLoader

func GetTestConfigLoader() func() ([]byte, error)

GetTestConfigLoader returns a function that loads a static test configuration

Types

type YaceMockClient

type YaceMockClient struct {
	Registry *prometheus.Registry
	Client   *client.CachingFactory
	Config   model.JobsConfig
	Logger   *slog.Logger
}

func (*YaceMockClient) CollectMetrics

func (y *YaceMockClient) CollectMetrics(logger types.Logger, config types.Config) error

func (*YaceMockClient) ExportMetrics added in v1.0.0

func (y *YaceMockClient) ExportMetrics(logger types.Logger) ([]*io_prometheus_client.MetricFamily, error)

func (*YaceMockClient) GetRegistry

func (y *YaceMockClient) GetRegistry() *prometheus.Registry

func (*YaceMockClient) Init

func (y *YaceMockClient) Init(func() ([]byte, error)) error

Jump to

Keyboard shortcuts

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