Documentation
¶
Index ¶
Constants ¶
View Source
const ( BadCredentialRequest = 400 BadCredentialRequestMessage = "Malformed credential request" BadCredentialRequestError = "SecretManager error, both SecretName and Region must be provided" ErrorUnknown = "An unknown error occurred" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnectionConfig ¶
type Response ¶
func (*Response) AppendData ¶
func (r *Response) AppendData(entityList []interface{})
type RowDecorator ¶
https://stackoverflow.com/questions/50046151/loop-through-database-sql-sql-rows-multiple-times Struct that holds a row collection and an OnScan callback func
func Wrap ¶
func Wrap(rows *sql.Rows, onScan func([]interface{}, error)) *RowDecorator
Wrap adds a callback func to the RowDecorator
func (*RowDecorator) Scan ¶
func (rows *RowDecorator) Scan(dest ...interface{}) error
The Scan method overwrites the default Scan behaviour and applies the OnScan callback passing on the params if present
type SecretsConfig ¶
type SecretsConfig struct { SecretName string // Instance name to pass in Region string // Region of Secret to pass in Response *Response }
SecretsConfig is used to set up the connection
func (*SecretsConfig) GenerateDBConnectionFromSecret ¶
func (s *SecretsConfig) GenerateDBConnectionFromSecret() DBConnectionConfig
Click to show internal directories.
Click to hide internal directories.