topology

package
v0.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoCluster = xerrors.New("no clusters found in system.clusters table")

Functions

func IsSingleNode

func IsSingleNode(shards map[string][]string) bool

Types

type Cluster

type Cluster struct {
	Topology Topology
	Shards   ShardHostMap
}

func (*Cluster) Name

func (c *Cluster) Name() string

func (*Cluster) SingleNode

func (c *Cluster) SingleNode() bool

type ShardHostMap

type ShardHostMap map[int][]string

type Topology

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

func NewTopology

func NewTopology(clusterName string, singleNode bool) *Topology

func ResolveTopology

func ResolveTopology(params model.ChSinkParams, lgr log.Logger) (*Topology, error)

func (*Topology) ClusterName

func (t *Topology) ClusterName() string

func (*Topology) SingleNode

func (t *Topology) SingleNode() bool

Jump to

Keyboard shortcuts

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