neo4j-go-driver: github.com/neo4j/neo4j-go-driver/neo4j/test-integration/control Index | Files

package control

import "github.com/neo4j/neo4j-go-driver/neo4j/test-integration/control"

Index

Package Files

causal-cluster-controller.go causal-cluster.go constants.go single-instance-controller.go single-instance.go utils.go

func StopCluster Uses

func StopCluster()

StopCluster stops the cluster

func StopSingleInstance Uses

func StopSingleInstance()

StopSingleInstance stops the server

type Cluster Uses

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

Cluster holds information about the cluster

func EnsureCluster Uses

func EnsureCluster() (*Cluster, error)

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

func (*Cluster) AnyFollower Uses

func (cluster *Cluster) AnyFollower() *ClusterMember

AnyFollower returns a follower from the list of current followers

func (*Cluster) AnyReadReplica Uses

func (cluster *Cluster) AnyReadReplica() *ClusterMember

AnyReadReplica returns a read replica from the list of current read replicas

func (*Cluster) AuthToken Uses

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

AuthToken returns the configured authentication token

func (*Cluster) Config Uses

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

Config returns the configured configurer function

func (*Cluster) CoreAddresses Uses

func (cluster *Cluster) CoreAddresses() []neo4j.ServerAddress

CoreAddresses returns the current core members' addresses

func (*Cluster) Cores Uses

func (cluster *Cluster) Cores() []*ClusterMember

Cores returns the current core members in the cluster

func (*Cluster) Followers Uses

func (cluster *Cluster) Followers() []*ClusterMember

Followers returns the current follower members in the cluster

func (*Cluster) Leader Uses

func (cluster *Cluster) Leader() *ClusterMember

Leader returns the current leader in the cluster

func (*Cluster) LeaderAddress Uses

func (cluster *Cluster) LeaderAddress() neo4j.ServerAddress

LeaderAddress returns the current leader's address

func (*Cluster) Password Uses

func (cluster *Cluster) Password() string

Password returns the configured password

func (*Cluster) ReadReplicaAddresses Uses

func (cluster *Cluster) ReadReplicaAddresses() []neo4j.ServerAddress

ReadReplicaAddresses returns the current read replica members' addresses

func (*Cluster) ReadReplicas Uses

func (cluster *Cluster) ReadReplicas() []*ClusterMember

ReadReplicas returns the current read replica members in the cluster

func (*Cluster) Username Uses

func (cluster *Cluster) Username() string

Username returns the configured username

type ClusterMember Uses

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

ClusterMember holds information about a single server in the cluster

func (*ClusterMember) Address Uses

func (member *ClusterMember) Address() neo4j.ServerAddress

Address returns hostname:port identifier for the member

func (*ClusterMember) BoltURI Uses

func (member *ClusterMember) BoltURI() string

BoltURI returns the bolt:// uri used to connect to the member

func (*ClusterMember) Path Uses

func (member *ClusterMember) Path() string

Path returns the folder where the member is installed

func (*ClusterMember) RoutingURI Uses

func (member *ClusterMember) RoutingURI() string

RoutingURI returns the bolt+routing:// uri used to connect to the cluster with this member as the initial router

func (*ClusterMember) String Uses

func (member *ClusterMember) String() string

type ClusterMemberRole Uses

type ClusterMemberRole string

ClusterMemberRole is the type of the server that's part of the causal cluster

const (
    // Leader role
    Leader ClusterMemberRole = "LEADER"
    // Follower role
    Follower ClusterMemberRole = "FOLLOWER"
    // ReadReplica role
    ReadReplica ClusterMemberRole = "READ_REPLICA"
)

type SingleInstance Uses

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

SingleInstance holds information about the single instance server

func EnsureSingleInstance Uses

func EnsureSingleInstance() (*SingleInstance, error)

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

func (*SingleInstance) AuthToken Uses

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

AuthToken returns the configured authentication token

func (*SingleInstance) BoltURI Uses

func (server *SingleInstance) BoltURI() string

BoltURI returns the bolt uri used to connect to the member

func (*SingleInstance) Config Uses

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

Config returns the configured configurer function

func (*SingleInstance) Driver Uses

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

Driver returns a driver instance to the server

func (*SingleInstance) Password Uses

func (server *SingleInstance) Password() string

Password returns the configured password

func (*SingleInstance) Path Uses

func (server *SingleInstance) Path() string

Path returns the folder where the server is installed

func (*SingleInstance) TLSCertificate Uses

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

TLSCertificate returns the installed certificate used by the server

func (*SingleInstance) Username Uses

func (server *SingleInstance) Username() string

Username returns the configured username

Package control imports 18 packages (graph). Updated 2019-02-20. Refresh now. Tools for package owners.