Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultProbeName = "orm"
DefaultProbeName is the name of the ORM probe.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrmProbe ¶
type OrmProbe struct {
// contains filtered or unexported fields
}
OrmProbe is a probe compatible with the healthcheck module.
func (*OrmProbe) Check ¶
func (p *OrmProbe) Check(ctx context.Context) *healthcheck.CheckerProbeResult
Check returns a successful healthcheck.CheckerProbeResult if the database connection can be pinged.
Click to show internal directories.
Click to hide internal directories.