Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceName ¶
func DataSourceName(d DataSourceNameParams) (string, error)
DataSourceName returns the data source name of the database.
Types ¶
type DataSourceNameParams ¶
type DataSourceNameParams struct {
Username string
Password string
Database string
EndpointsString string
LoadBalance bool
TLS DatabaseTLSConfig
}
DataSourceNameParams defines the parameters required to construct a database connection string.
type DatabaseTLSConfig ¶
type DatabaseTLSConfig struct {
Mode string `mapstructure:"mode"`
CACertPath string `mapstructure:"ca-cert-path"`
}
DatabaseTLSConfig holds the database TLS mode and its necessary credentials.
Click to show internal directories.
Click to hide internal directories.