Documentation
¶
Overview ¶
Package pingstore enables database health checks through the db PingContext method. The Pinger interface allows mocking the Ping when testing with no db connectivity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastorer ¶ added in v0.34.0
Datastorer is an interface for working with the Database
type Pinger ¶
type Pinger struct {
Datastorer
}
Pinger is the default implementation for pinging the db
func NewPinger ¶ added in v0.34.0
func NewPinger(ds Datastorer) Pinger
NewPinger is an initializer for DefaultPinger
Click to show internal directories.
Click to hide internal directories.