bolt

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(serverName string, conn net.Conn, auth map[string]interface{}, log log.Logger) (db.Connection, error)

Negotiate version of bolt protocol. Returns instance of bolt protocol implmenting low-level abstract db connection interface.

func NewBolt3

func NewBolt3(serverName string, conn net.Conn, log log.Logger) *bolt3

func NewBolt4

func NewBolt4(serverName string, conn net.Conn, log log.Logger) *bolt4

Types

type Logger

type Logger interface {
	ConnectError(c net.Conn, err error)
	ConnectionError(c db.Connection, err error)
	ConnectionInfo(c db.Connection, msg string, args ...interface{})
}

Jump to

Keyboard shortcuts

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