Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthModule ¶
type AuthModule struct { Type string `yaml:"type"` UserPass UserPass `yaml:"userpass,omitempty"` // Add alternative auth modules here Options map[string]string `yaml:"options"` }
func (AuthModule) ConfigureTarget ¶
func (m AuthModule) ConfigureTarget(target string) (DSN, error)
type Config ¶
type Config struct {
AuthModules map[string]AuthModule `yaml:"auth_modules"`
}
type DSN ¶
type DSN struct {
// contains filtered or unexported fields
}
DSN represents a parsed datasource. It contains fields for the individual connection components.
func (DSN) GetConnectionString ¶
GetConnectionString returns the URL to pass to the driver for database connections. This value should not be logged.
Click to show internal directories.
Click to hide internal directories.