Documentation ¶
Index ¶
Constants ¶
View Source
const (
TypeCockroachDB string = "cockroachdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type ConnectionConfig ¶
type ConnectionConfig struct { Name string `json:"name"` Type string `json:"type"` CockroachDB *ConnectionConfigCockroachdb `json:"cockroachdb,omitempty"` }
type ConnectionConfigCockroachdb ¶
type ConnectionConfigCockroachdb struct {
ConnString string `json:"conn_string"`
}
type Connections ¶
type Connections struct {
Connections map[string]*Connection
}
func FromFile ¶
func FromFile( ctx context.Context, reg prometheus.Registerer, file string, ) (*Connections, error)
type ConnectionsConfig ¶
type ConnectionsConfig struct {
Connections []ConnectionConfig `json:"connections"`
}
Click to show internal directories.
Click to hide internal directories.