healthcheck

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 5 Imported by: 0

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 NewOrmProbe

func NewOrmProbe(db *gorm.DB) *OrmProbe

NewOrmProbe returns a new OrmProbe.

func (*OrmProbe) Check

Check returns a successful healthcheck.CheckerProbeResult if the database connection can be pinged.

func (*OrmProbe) Name

func (p *OrmProbe) Name() string

NewOrmProbe returns the name of the OrmProbe.

func (*OrmProbe) SetName

func (p *OrmProbe) SetName(name string) *OrmProbe

SetName sets the name of the OrmProbe.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL