control

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTlsEnabled added in v1.8.0

func IsTlsEnabled() bool

func StopCluster

func StopCluster()

StopCluster stops the cluster

func StopSingleInstance

func StopSingleInstance()

StopSingleInstance stops the server

Types

type Cluster

type Cluster struct {
	Members    []*ClusterMember
	RoutingURI string
	// contains filtered or unexported fields
}

Cluster holds information about the cluster

func EnsureCluster

func EnsureCluster() (*Cluster, error)

EnsureCluster either returns an existing cluster instance or starts up a new one

func (*Cluster) AuthToken

func (cluster *Cluster) AuthToken() neo4j.AuthToken

AuthToken returns the configured authentication token

func (*Cluster) Config

func (cluster *Cluster) Config() func(config *neo4j.Config)

Config returns the configured configurer function

func (*Cluster) Password

func (cluster *Cluster) Password() string

Password returns the configured password

func (*Cluster) Username

func (cluster *Cluster) Username() string

Username returns the configured username

type ClusterMember

type ClusterMember struct {
	HostnameAndPort string
	RoutingURI      string
}

ClusterMember holds information about a single server in the cluster

type SingleInstance

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

SingleInstance holds information about the single instance server

func EnsureSingleInstance

func EnsureSingleInstance() (*SingleInstance, error)

EnsureSingleInstance either returns an existing server instance or starts up a new one

func (*SingleInstance) AuthToken

func (server *SingleInstance) AuthToken() neo4j.AuthToken

AuthToken returns the configured authentication token

func (*SingleInstance) BoltURI

func (server *SingleInstance) BoltURI() string

BoltURI returns the bolt uri used to connect to the member

func (*SingleInstance) Config

func (server *SingleInstance) Config() func(config *neo4j.Config)

Config returns the configured configurer function

func (*SingleInstance) Driver

func (server *SingleInstance) Driver() (neo4j.Driver, error)

Driver returns a driver instance to the server

func (*SingleInstance) Password

func (server *SingleInstance) Password() string

Password returns the configured password

func (*SingleInstance) Path

func (server *SingleInstance) Path() string

Path returns the folder where the server is installed

func (*SingleInstance) TLSCertificate

func (server *SingleInstance) TLSCertificate() *x509.Certificate

TLSCertificate returns the installed certificate used by the server

func (*SingleInstance) Username

func (server *SingleInstance) Username() string

Username returns the configured username

Jump to

Keyboard shortcuts

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