Documentation ¶
Index ¶
- func StopCluster()
- func StopSingleInstance()
- type Cluster
- func (cluster *Cluster) AnyFollower() *ClusterMember
- func (cluster *Cluster) AnyReadReplica() *ClusterMember
- func (cluster *Cluster) AuthToken() neo4j.AuthToken
- func (cluster *Cluster) Config() func(config *neo4j.Config)
- func (cluster *Cluster) CoreAddresses() []neo4j.ServerAddress
- func (cluster *Cluster) Cores() []*ClusterMember
- func (cluster *Cluster) Followers() []*ClusterMember
- func (cluster *Cluster) Leader() *ClusterMember
- func (cluster *Cluster) LeaderAddress() neo4j.ServerAddress
- func (cluster *Cluster) ReadReplicaAddresses() []neo4j.ServerAddress
- func (cluster *Cluster) ReadReplicas() []*ClusterMember
- type ClusterMember
- type ClusterMemberRole
- 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) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StopCluster ¶
func StopCluster()
func StopSingleInstance ¶
func StopSingleInstance()
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func EnsureCluster ¶
func (*Cluster) AnyFollower ¶
func (cluster *Cluster) AnyFollower() *ClusterMember
func (*Cluster) AnyReadReplica ¶
func (cluster *Cluster) AnyReadReplica() *ClusterMember
func (*Cluster) CoreAddresses ¶
func (cluster *Cluster) CoreAddresses() []neo4j.ServerAddress
func (*Cluster) Cores ¶
func (cluster *Cluster) Cores() []*ClusterMember
func (*Cluster) Followers ¶
func (cluster *Cluster) Followers() []*ClusterMember
func (*Cluster) Leader ¶
func (cluster *Cluster) Leader() *ClusterMember
func (*Cluster) LeaderAddress ¶
func (cluster *Cluster) LeaderAddress() neo4j.ServerAddress
func (*Cluster) ReadReplicaAddresses ¶
func (cluster *Cluster) ReadReplicaAddresses() []neo4j.ServerAddress
func (*Cluster) ReadReplicas ¶
func (cluster *Cluster) ReadReplicas() []*ClusterMember
type ClusterMember ¶
type ClusterMember struct {
// contains filtered or unexported fields
}
func (*ClusterMember) BoltUri ¶
func (member *ClusterMember) BoltUri() string
func (*ClusterMember) Path ¶
func (member *ClusterMember) Path() string
func (*ClusterMember) RoutingUri ¶
func (member *ClusterMember) RoutingUri() string
func (*ClusterMember) String ¶
func (member *ClusterMember) String() string
type ClusterMemberRole ¶
type ClusterMemberRole string
const ( LEADER ClusterMemberRole = "LEADER" FOLLOWER ClusterMemberRole = "FOLLOWER" READ_REPLICA ClusterMemberRole = "READ_REPLICA" )
type SingleInstance ¶
type SingleInstance struct {
// contains filtered or unexported fields
}
func EnsureSingleInstance ¶
func EnsureSingleInstance() (*SingleInstance, error)
func (*SingleInstance) AuthToken ¶
func (server *SingleInstance) AuthToken() neo4j.AuthToken
func (*SingleInstance) BoltUri ¶
func (server *SingleInstance) BoltUri() string
func (*SingleInstance) Config ¶
func (server *SingleInstance) Config() func(config *neo4j.Config)
func (*SingleInstance) Password ¶
func (server *SingleInstance) Password() string
func (*SingleInstance) Username ¶
func (server *SingleInstance) Username() string
Click to show internal directories.
Click to hide internal directories.