WithHttpHealthCheck
Method
func (ResourceWithEndpoints) WithHttpHealthCheck(options ...*WithHttpHealthCheckOptions) ResourceWithEndpointsSignature
method
WithHttpHealthCheck builderAdds a health check to the resource which is mapped to a specific endpoint.
WithHttpHealthCheck(options ...*WithHttpHealthCheckOptions) ResourceWithEndpointsParameters
options...*WithHttpHealthCheckOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithHttpHealthCheckOptions argument.
Path*stringThe relative path to test.StatusCode *float64The result code to interpret as healthy.EndpointName *stringThe name of the endpoint to derive the base address from.Returns
ResourceWithEndpoints The resource builder.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types: