dbserver

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: 6 Imported by: 0

Documentation

Overview

Package dbserver is used by integration tests to connect to databases

Index

Constants

This section is empty.

Variables

View Source
var (
	// V340 identifies server version 3.4.0
	V340 = VersionOf("3.4.0")
	// V350 identifies server version 3.5.0
	V350 = VersionOf("3.5.0")
)

Functions

This section is empty.

Types

type DbServer

type DbServer struct {
	Username     string
	Password     string
	Scheme       string
	Hostname     string
	Port         int
	IsCluster    bool
	IsEnterprise bool
	Version      Version
}

func GetDbServer

func GetDbServer() DbServer

func (DbServer) AuthToken

func (s DbServer) AuthToken() neo4j.AuthToken

Returns the default auth token to connect to the database. This should be used when tests don't care about exactly what type of authorization scheme that is being used.

func (DbServer) BoltURI

func (s DbServer) BoltURI() string

func (DbServer) ConfigFunc

func (s DbServer) ConfigFunc() func(*neo4j.Config)

func (DbServer) Driver

func (s DbServer) Driver(configurers ...func(*neo4j.Config)) neo4j.Driver

func (DbServer) URI

func (s DbServer) URI() string

Returns the default URI to connect to the datbase. This should be used when tests don't care about the specifics of different URI schemes.

type Version

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

func VersionOf

func VersionOf(server string) Version

func (Version) Equals

func (version Version) Equals(other Version) bool

func (Version) GreaterThan

func (version Version) GreaterThan(other Version) bool

func (Version) GreaterThanOrEqual

func (version Version) GreaterThanOrEqual(other Version) bool

func (Version) LessThan

func (version Version) LessThan(other Version) bool

func (Version) LessThanOrEqual

func (version Version) LessThanOrEqual(other Version) bool

func (Version) String

func (version Version) String() string

Jump to

Keyboard shortcuts

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