connector

package
v5.28.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 11 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 Connector

type Connector struct {
	SkipEncryption     bool
	SkipVerify         bool
	Log                log.Logger
	LogId              string
	RoutingContext     map[string]string
	Network            string
	Config             *config.Config
	SupplyConnection   func(context.Context, string) (net.Conn, error)
	TestKitDnsResolver func(string) []string
}

func (*Connector) Connect

func (c *Connector) Connect(
	ctx context.Context,
	address string,
	auth *db.ReAuthToken,
	errorListener bolt.ConnectionErrorListener,
	boltLogger log.BoltLogger,
) (connection db.Connection, err error)

Jump to

Keyboard shortcuts

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