connector

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package connector is responsible for connecting to a database server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectError

type ConnectError struct {
	// contains filtered or unexported fields
}

func (*ConnectError) Error

func (e *ConnectError) Error() string

type Connector

type Connector struct {
	SkipEncryption  bool
	SkipVerify      bool
	RootCAs         *x509.CertPool
	DialTimeout     time.Duration
	SocketKeepAlive bool
	Auth            map[string]interface{}
	Log             log.Logger
	UserAgent       string
	RoutingContext  map[string]string
	Network         string
}

func (Connector) Connect

func (c Connector) Connect(address string) (db.Connection, error)

type TlsError

type TlsError struct {
	// contains filtered or unexported fields
}

func (*TlsError) Error

func (e *TlsError) Error() string

Jump to

Keyboard shortcuts

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