Documentation ¶
Overview ¶
Package healthep Contains implementation of health endpoint as a separate package to avoid cyclic package dependency.
Implementations in this package cannot be moved to package "actuator/health", otherwise, it could create cyclic package dependency as following:
actuator/health -> actuator -> security -> tenancy -> redis -> actuator/health
Therefore, any implementations involves package mentioned above should be moved here
Index ¶
Constants ¶
View Source
const ( ID = "health" EnableByDefault = true )
Variables ¶
View Source
var Module = &bootstrap.Module{ Name: "actuator-health-ep", Precedence: actuator.MinActuatorPrecedence, Options: []fx.Option{ fx.Invoke(register), }, }
Functions ¶
Types ¶
type CompositeHealthV2 ¶
type CompositeHealthV2 struct { health.SimpleHealth Components map[string]health.Health `json:"details,omitempty"` }
type DefaultDisclosureControl ¶
type DefaultDisclosureControl struct {
// contains filtered or unexported fields
}
DefaultDisclosureControl implements health.DetailsDisclosureControl and health.ComponentsDisclosureControl
func (*DefaultDisclosureControl) ShouldShowComponents ¶
func (c *DefaultDisclosureControl) ShouldShowComponents(ctx context.Context) bool
func (*DefaultDisclosureControl) ShouldShowDetails ¶
func (c *DefaultDisclosureControl) ShouldShowDetails(ctx context.Context) bool
type EndpointOption ¶
type EndpointOption struct { Contributor health.Indicator StatusCodeMapper health.StatusCodeMapper MgtProperties actuator.ManagementProperties Properties health.HealthProperties DetailsControl health.DetailsDisclosureControl ComponentsControl health.ComponentsDisclosureControl }
type EndpointOptions ¶
type EndpointOptions func(opt *EndpointOption)
type HealthEndpoint ¶
type HealthEndpoint struct { actuator.WebEndpointBase // contains filtered or unexported fields }
HealthEndpoint implements actuator.Endpoint, actuator.WebEndpoint
type Output ¶
func (Output) MarshalJSON ¶
MarshalJSON json.Marshaler
Click to show internal directories.
Click to hide internal directories.