Documentation
¶
Index ¶
Examples ¶
Constants ¶
View Source
const (
AgentName = "common:sql:agent/diagnostic/postgres"
)
Variables ¶
View Source
var Diagnostic = func() *Interface { return &Interface{ Ping: func(ctx context.Context) error { if ctx == nil { ctx = context.Background() } start := time.Now().UTC() err := agent.ping(ctx) agent.log(start, time.Since(start), routeName, newRequest(name, method), newResponse(agent.statusCode(err)), ctx) return err }, Stat: func() error { return agent.stat() }, } }()
Diagnostic -
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.