Documentation ¶
Index ¶
- func IsTlsEnabled() bool
- func StopCluster()
- func StopSingleInstance()
- type Cluster
- type ClusterMember
- type SingleInstance
- func (server *SingleInstance) AuthToken() neo4j.AuthToken
- func (server *SingleInstance) BoltURI() string
- func (server *SingleInstance) Config() func(config *neo4j.Config)
- func (server *SingleInstance) Driver() (neo4j.Driver, error)
- func (server *SingleInstance) Password() string
- func (server *SingleInstance) Path() string
- func (server *SingleInstance) TLSCertificate() *x509.Certificate
- func (server *SingleInstance) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTlsEnabled ¶ added in v1.8.2
func IsTlsEnabled() bool
Types ¶
type Cluster ¶
type Cluster struct { Members []*ClusterMember RoutingURI string // contains filtered or unexported fields }
Cluster holds information about the cluster
func EnsureCluster ¶
EnsureCluster either returns an existing cluster instance or starts up a new one
type ClusterMember ¶
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