Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Service ¶
type Service struct { Name string `yaml:"name"` Request string `yaml:"request-url"` POST bool `yaml:"post"` Timeout int `yaml:"timeout"` Period int `yaml:"period"` ContentType string `yaml:"content-type"` RequestsCount int `yaml:"requests-count"` FailureCount int `yaml:"failures-count"` Slacks []string `yaml:"slacks"` Webhooks []string `yaml:"webhooks"` LastRequestsResult []bool LastAlert time.Time }
Service is container of properties of services
type ServicesListYAML ¶
type ServicesListYAML struct {
ServicesList []Service `yaml:"services"`
}
ServicesListYAML contains array of services
var ( // ServicesFilePath is path of config file of services ServicesFilePath = "services.yaml" // Services contains list of all services Services ServicesListYAML )
Click to show internal directories.
Click to hide internal directories.