Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Healthy represents a healthy response
Healthy = "healthy"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceCheckConfig ¶
type ServiceCheckConfig struct { Name string `json:"name"` URL string `json:"url"` Method string `json:"method"` Body interface{} `json:"body,omitempty"` }
ServiceCheckConfig .
type ServiceCheckResponse ¶
type ServiceCheckResponse struct { ServiceCheckConfig `json:"request"` StatusCode int `json:"status-code,omitempty"` Error string `json:"error,omitempty"` Body interface{} `json:"response-body,omitempty"` }
ServiceCheckResponse .
func CheckServices ¶
func CheckServices(ctx context.Context, checks []ServiceCheckConfig) []ServiceCheckResponse
CheckServices .
Click to show internal directories.
Click to hide internal directories.