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) Driver ¶
func (pc *PgConnectorWithRds) Driver() driver.Driver
type RdsCaVersion ¶ added in v0.0.4
type RdsCaVersion int
const ( Rds2015 RdsCaVersion = iota Rds2019 )
Click to show internal directories.
Click to hide internal directories.