nrsql

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxRdsRetriesSec = 5
View Source
const RdsRootCert2015 = `` /* 1432-byte string literal not displayed */
View Source
const RdsRootCert2019 = `` /* 1456-byte string literal not displayed */

Variables

This section is empty.

Functions

func MakeCaCertFile added in v0.0.4

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.

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 added in v0.0.4

type RdsCaVersion int
const (
	Rds2015 RdsCaVersion = iota
	Rds2019
)

Jump to

Keyboard shortcuts

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