README ¶ mydburl xo/dburl wrapper for encrypted connection to MySQL using TLS protocol. Support sslCa, sslCert, sslKey query params. mysql://username:password@hostname:port/dbmane?sslCa=path/to/ca.pem&sslCert=path/to/cert.pem&sslKey=path/to/key.pem Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants func Open(urlstr string) (*sql.DB, error) type URL func Parse(urlstr string) (*URL, error) func (u *URL) RegisterTlsConfig(k string) error Constants ¶ View Source const ( DefaultTlsKey = "mydburl" ) Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(urlstr string) (*sql.DB, error) Types ¶ type URL ¶ type URL struct { dburl.URL SslCa string SslCert string SslKey string } func Parse ¶ func Parse(urlstr string) (*URL, error) func (*URL) RegisterTlsConfig ¶ func (u *URL) RegisterTlsConfig(k string) error Source Files ¶ View all Source files mydburl.go Click to show internal directories. Click to hide internal directories.