Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
Option is a functional option for configuring the connection pool.
func WithAWSConfig ¶
WithAWSConfig sets the AWS configuration to be used by the TokenGenerator. The default is to look for the config in the context, but this option allows it to be explicitly provided.
func WithAcquireConnection ¶
WithAcquireConnection forces the pool to acquire a connection during initialization. This can be used to validate the connection parameters and fail fast if there are issues.
func WithServerName ¶
WithServerName sets the TLS ServerName for connections in the pool. This is required for services like DSQL that use the ServerName for routing and authentication.
func WithTokenGenerator ¶
func WithTokenGenerator(tokenGenerator TokenGenerator) Option
WithTokenGenerator sets a custom TokenGenerator that will be called to generate a fresh authentication token for every new connection. This is essential for services like DSQL that require short-lived tokens.