router

package
v1.31.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func New

func New(logger *logrus.Logger, clusterStateReader cluster.NodeSelector, metadataReader schemaTypes.SchemaReader, replicationFSMReader replicationTypes.ReplicationFSMReader) *Router

func (*Router) AllHostnames

func (r *Router) AllHostnames() []string

func (*Router) BuildReadRoutingPlan

func (r *Router) BuildReadRoutingPlan(params types.RoutingPlanBuildOptions) (types.RoutingPlan, error)

func (*Router) BuildWriteRoutingPlan

func (r *Router) BuildWriteRoutingPlan(params types.RoutingPlanBuildOptions) (types.RoutingPlan, error)

func (*Router) GetReadReplicasLocation

func (r *Router) GetReadReplicasLocation(collection string, shard string) ([]string, error)

func (*Router) GetReadWriteReplicasLocation

func (r *Router) GetReadWriteReplicasLocation(collection string, shard string) ([]string, []string, []string, error)

func (*Router) GetWriteReplicasLocation

func (r *Router) GetWriteReplicasLocation(collection string, shard string) ([]string, []string, error)

func (*Router) NodeHostname

func (r *Router) NodeHostname(nodeName string) (string, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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