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 DefaultPinger ¶
type DefaultPinger struct {
datastore.Datastorer
}
DefaultPinger is the default implementation for pinging the db
func NewDefaultPinger ¶
func NewDefaultPinger(ds datastore.Datastorer) DefaultPinger
NewDefaultPinger is an initializer for DefaultPinger
Click to show internal directories.
Click to hide internal directories.