dsn

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceName

type DataSourceName struct {
	Host           string
	Port           string
	Password       string
	ConnectTimeout time.Duration
	Parameter      map[string]string
	SSL            struct {
		Mode        string
		Cert        string
		Key         string
		RootCert    string
		Crl         string
		Compression int
	}
}

func ParseDSN

func ParseDSN(connectStr string) (dsn DataSourceName, err error)

func (*DataSourceName) Address

func (dsn *DataSourceName) Address() (network, address string, timeout time.Duration)

func (*DataSourceName) SSLCheck

func (dsn *DataSourceName) SSLCheck() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL