db

package
v0.2.0-rc.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeCockroachDB string = "cockroachdb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Type            string
	CockroachClient *crdb.Client
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL