config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ContentTypes map[string]ValidatorConfig   `yaml:"content-types"`
	HealthChecks map[string]HealthCheckConfig `yaml:"end-point-health-checks"`
}

func ReadConfig

func ReadConfig(yml string) (*Config, error)

type HealthCheckConfig

type HealthCheckConfig struct {
	ID               string `yaml:"id"`
	BusinessImpact   string `yaml:"business-impact"`
	Name             string `yaml:"name"`
	PanicGuide       string `yaml:"panic-guide"`
	Severity         uint8  `yaml:"severity"`
	TechnicalSummary string `yaml:"technical-summary"`
	CheckerName      string `yaml:"checker-name"`
}

type ValidatorConfig added in v1.2.4

type ValidatorConfig struct {
	Validator string `yaml:"validator"`
	Endpoint  string `yaml:"end-point"`
}

Jump to

Keyboard shortcuts

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