MCPcopy
hub / github.com/PatchMon/PatchMon / Ping

Method Ping

server-source-code/internal/database/database.go:67–69  ·  view source on GitHub ↗

Ping checks database connectivity.

(ctx context.Context)

Source from the content-addressed store, hash-verified

65
66// Ping checks database connectivity.
67func (p *Pool) Ping(ctx context.Context) error {
68 return p.Pool.Ping(ctx)
69}
70
71// Close closes the pool.
72func (p *Pool) Close() {

Callers 9

waitForDBMethod · 0.95
HealthMethod · 0.95
NewFromURLFunction · 0.45
waitForDBMethod · 0.45
HealthMethod · 0.45
NewRegistryFunction · 0.45
healthHandlerFunction · 0.45
PingFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected