Documentation
¶
Index ¶
- func BuildAuthToken(ctx context.Context, connectionConfig ConnectionConfig, iamConfig IAMConfig) (string, error)
- func NewConnection(ctx context.Context, connectionConfig *ConnectionConfig, iamConfig *IAMConfig) (*pgxpool.Pool, error)
- func UuidStringAsPGUuid(userUuid string) (pgtype.UUID, error)
- type ConnectionConfig
- type IAMConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthToken ¶ added in v0.2.1
func NewConnection ¶ added in v0.2.0
func NewConnection(ctx context.Context, connectionConfig *ConnectionConfig, iamConfig *IAMConfig) (*pgxpool.Pool, error)
NewConnection Creates a connection pool to the database defined in the ConnectionConfig. If an IAMConfig is given, then it is assumed to be using rds connect and the connection lifetime values will be overwritten.
Types ¶
type ConnectionConfig ¶ added in v0.2.0
type IAMConfig ¶ added in v0.2.0
type IAMConfig struct {
Credentials aws.CredentialsProvider
Region string
}
Click to show internal directories.
Click to hide internal directories.