connector

package
v5.8.1-1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 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
	RoutingContext   map[string]string
	Network          string
	Config           *config.Config
	SupplyConnection func(context.Context, string) (net.Conn, error)
	Now              *func() time.Time
}

func (Connector) Connect

func (c Connector) Connect(
	ctx context.Context,
	address string,
	auth *db.ReAuthToken,
	callback bolt.Neo4jErrorCallback,
	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