tracedsql

package
v0.0.0-...-c8e4165 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRdsRetriesSec = 5
View Source
const (
	Rds2019 = iota
)
View Source
const RdsRootCert2019 = `` /* 1456-byte string literal not displayed */

Variables

This section is empty.

Functions

func MakeCaCertFile

func MakeCaCertFile(version RdsCaVersion) (string, error)

Types

type PgConnectorWithRds

type PgConnectorWithRds struct {
	// contains filtered or unexported fields
}

func MakePgConnector

func MakePgConnector(ctx context.Context, connStr string, sslCaPath string,
	config aws.Config) (*PgConnectorWithRds, error)

Create a Postgres connector to use with NewRelic. The PgConnector supports resolving RDS endpoints and AWS secrets-based authentication. Example conn string: "rdsDb=terra-rds dbName=terra secretName=terra-rds-admin"

func (*PgConnectorWithRds) Connect

func (pc *PgConnectorWithRds) Connect(ctx context.Context) (driver.Conn, error)

func (*PgConnectorWithRds) Driver

func (pc *PgConnectorWithRds) Driver() driver.Driver

func (*PgConnectorWithRds) Ping

func (pc *PgConnectorWithRds) Ping(ctx context.Context) error

type RdsCaVersion

type RdsCaVersion int

Jump to

Keyboard shortcuts

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