Documentation ¶ Index ¶ Variables type Config func ParseDSN(dsn string) (*Config, error) func (cfg *Config) FormatDSN() string Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidDSNAddr = errors.New("invalid dsn addr") ErrInvalidDSNUnescaped = errors.New("dsn must be escaped") ErrInvalidDSNNoSlash = errors.New("dsn must contains slash") ) Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { TLSConfig *tls.Config Username string Password string Scheme string Host string Port string Database string Params []string } func ParseDSN ¶ func ParseDSN(dsn string) (*Config, error) func (*Config) FormatDSN ¶ added in v3.10.31 func (cfg *Config) FormatDSN() string Source Files ¶ View all Source files dsn.go Click to show internal directories. Click to hide internal directories.