service

package
v0.0.0-...-a1b7323 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationService

type ConfigurationService struct {
	ServerSettings  *config.ServerSettings
	TesterSettings  *config.TesterSettings
	TesterConfig    *config.TesterConfig
	MetricsSettings *config.MetricsSettings
}

func CreateConfigurationService

func CreateConfigurationService(configReader config.BlackboxConfigReader) (*ConfigurationService, error)

type Factory

type Factory struct {
	ConfigurationService *ConfigurationService
	MetricsService       MetricsServiceInterface
}

func NewServiceFactory

func NewServiceFactory(configurationService *ConfigurationService) (*Factory, error)

type MetricsServiceInterface

type MetricsServiceInterface interface {
	ReportStepTestSuccess(ctx context.Context, flowName string, stepName string) error
	ReportStepTestError(ctx context.Context, flowName string, stepName string) error
	ReportStepTestTimeout(ctx context.Context, flowName string, stepName string) error
	ReportStepTestDuration(ctx context.Context, flowName string, ms float64, stepName string) error
}

func NewMetricsService

func NewMetricsService(settings *config.MetricsSettings) (MetricsServiceInterface, error)

Jump to

Keyboard shortcuts

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