cgcpg

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(options ...ConnConfigOption) (pgx.ConnConfig, error)

func NewRdsSslConnection

func NewRdsSslConnection(cfg aws.Config, host string, port int, database, username string) (*pgx.Conn, error)

Types

type ConnConfigOption

type ConnConfigOption interface {
	Configure(config *pgx.ConnConfig) error
}

type RdsIamConfigOption

type RdsIamConfigOption struct {
	Host, Username, Database string
	Port                     int
	Config                   aws.Config
}

func (RdsIamConfigOption) Configure added in v0.4.2

func (r RdsIamConfigOption) Configure(config *pgx.ConnConfig) error

type TlsConfigOption

type TlsConfigOption struct {
	Host string
}

func (TlsConfigOption) Configure added in v0.4.2

func (t TlsConfigOption) Configure(config *pgx.ConnConfig) error

Jump to

Keyboard shortcuts

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