Categorygithub.com/aereal/go-http-magi
modulepackage
0.0.2
Repository: https://github.com/aereal/go-http-magi.git
Documentation: pkg.go.dev

# README

go-http-magi

Run check-http concurrently and accumulate results without false-positive.

Motivation

  • primary URL: The URL that we want to check
    • Serving our environment such as CMS
  • secondary URL: The URL that shares HTTP serving environment such as proxy with primary URL
    • Serving their environment

Sometimes we may get check failure on primary URL but actually that is caused by their enironment issues, so we want to do triage such errors.

Implementations

Set *SiteCheckResult.status to checkers.WARNING (or else) if only primary URL is failed.

primary: http://example.com/subdir/secondary:http://example.com/Total status
OKOKOK
OKNGOK
NGOKNG
NGNGOK

# Structs

App represents execution context of CLI application.
Site represents a set of URLs.
SiteCheckResult represents a check result of the site.
URLCheckResult represents a result of external monitoring.