Documentation
¶
Index ¶
Constants ¶
View Source
const ConnectionInfoName = "connection_info"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionInfo ¶
type ConnectionInfo struct {
DSN string
Registry *prometheus.Registry
InfoMetric *prometheus.GaugeVec
// contains filtered or unexported fields
}
func NewConnectionInfo ¶
func NewConnectionInfo(args ConnectionInfoArguments) (*ConnectionInfo, error)
func (*ConnectionInfo) Name ¶
func (c *ConnectionInfo) Name() string
func (*ConnectionInfo) Stop ¶
func (c *ConnectionInfo) Stop()
func (*ConnectionInfo) Stopped ¶
func (c *ConnectionInfo) Stopped() bool
type ConnectionInfoArguments ¶
type ConnectionInfoArguments struct {
DSN string
Registry *prometheus.Registry
}
Click to show internal directories.
Click to hide internal directories.