Documentation
¶
Index ¶
- Constants
- Variables
- func AdditionalPreChecks() ...
- func LoggingContextForCheck(checkType string, uuid string, environment string, transactionID string) string
- func ScheduleChecks(p *SchedulerParam, subscribedFeeds map[string][]feeds.Feed, ...)
- func МainPreChecks() ...
- type ContentCheck
- type ContentNeo4jCheck
- type EndpointSpecificCheck
- type NotificationsCheck
- type PublishCheck
- type S3Check
- type SchedulerParam
Constants ¶
const DateLayout = time.RFC3339Nano
Variables ¶
var (
AbsoluteURLRegex = regexp.MustCompile("(?i)https?://.*")
)
Functions ¶
func AdditionalPreChecks ¶ added in v1.0.4
func LoggingContextForCheck ¶ added in v1.0.4
func ScheduleChecks ¶ added in v1.0.4
func ScheduleChecks(p *SchedulerParam, subscribedFeeds map[string][]feeds.Feed, endpointSpecificChecks map[string]EndpointSpecificCheck, appConfig *config.AppConfig, metricSink chan metrics.PublishMetric, e2eTestUUIDs []string)
func МainPreChecks ¶ added in v1.0.4
Types ¶
type ContentCheck ¶ added in v1.0.4
type ContentCheck struct {
// contains filtered or unexported fields
}
ContentCheck implements the EndpointSpecificCheck interface to check operation status for the content endpoint.
func NewContentCheck ¶ added in v1.0.4
func NewContentCheck(httpCaller httpcaller.Caller) ContentCheck
type ContentNeo4jCheck ¶ added in v1.0.4
type ContentNeo4jCheck struct {
// contains filtered or unexported fields
}
ContentNeo4jCheck implements the EndpointSpecificCheck interface to check operation status for the content endpoint.
func NewContentNeo4jCheck ¶ added in v1.0.4
func NewContentNeo4jCheck(httpCaller httpcaller.Caller) ContentNeo4jCheck
type EndpointSpecificCheck ¶ added in v1.0.4
type EndpointSpecificCheck interface {
// contains filtered or unexported methods
}
EndpointSpecificCheck is the interface which determines the state of the operation we are currently checking.
type NotificationsCheck ¶ added in v1.0.4
type NotificationsCheck struct {
// contains filtered or unexported fields
}
NotificationsCheck implements the EndpointSpecificCheck interface to build the endpoint URL and to check the operation is present in the notification feed
func NewNotificationsCheck ¶ added in v1.0.4
func NewNotificationsCheck(httpCaller httpcaller.Caller, subscribedFeeds map[string][]feeds.Feed, feedName string) NotificationsCheck
type PublishCheck ¶ added in v1.0.4
type PublishCheck struct { Metric metrics.PublishMetric Threshold int CheckInterval int ResultSink chan metrics.PublishMetric // contains filtered or unexported fields }
PublishCheck performs an availability check on a piece of content, at a given endpoint, and returns whether the check was successful or not. Holds all the information necessary to check content availability at an endpoint, as well as store and send the results of the check.
func NewPublishCheck ¶ added in v1.0.4
func NewPublishCheck(pm metrics.PublishMetric, username string, password string, t int, ci int, rs chan metrics.PublishMetric, endpointSpecificChecks map[string]EndpointSpecificCheck) *PublishCheck
NewPublishCheck returns a PublishCheck ready to perform a check for pm.UUID, at the pm.Endpoint.
func (PublishCheck) DoCheck ¶ added in v1.0.4
func (pc PublishCheck) DoCheck() (checkSuccessful, ignoreCheck bool)
DoCheck performs an availability check on a piece of content at a certain endpoint, applying endpoint-specific processing. Returns true if the content is available at the endpoint, false otherwise.
func (PublishCheck) String ¶ added in v1.0.4
func (pc PublishCheck) String() string
type S3Check ¶ added in v1.0.4
type S3Check struct {
// contains filtered or unexported fields
}
S3Check implements the EndpointSpecificCheck interface to check operation status for the S3 endpoint.
func NewS3Check ¶ added in v1.0.4
func NewS3Check(httpCaller httpcaller.Caller) S3Check
type SchedulerParam ¶ added in v1.0.4
type SchedulerParam struct {
// contains filtered or unexported fields
}