Documentation
¶
Index ¶
- func GetTestConfigLoader() func() ([]byte, error)
- type YaceMockClient
- func (y *YaceMockClient) CollectMetrics(logger types.Logger, config types.Config) error
- func (y *YaceMockClient) ExportMetrics(logger types.Logger) ([]*io_prometheus_client.MetricFamily, error)
- func (y *YaceMockClient) GetRegistry() *prometheus.Registry
- func (y *YaceMockClient) Init(func() ([]byte, error)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestConfigLoader ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.