Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
ReplicasetUUID string `yaml:"replicaset_uuid" mapstructure:"replicaset_uuid"`
}
type Config ¶
type Config struct {
Topology SourceTopologyConfig `json:"topology"`
}
Config is a representation of the topology configuration for tarantool version below 3. based on https://github.com/moonlibs/config?tab=readme-ov-file#example-of-etcd-configuration-etcdclustermaster.
func (*Config) Convert ¶
func (cfg *Config) Convert() map[vshardrouter.ReplicasetInfo][]vshardrouter.InstanceInfo
type InstanceInfo ¶
type SourceTopologyConfig ¶
type SourceTopologyConfig struct { Clusters map[string]ClusterInfo `json:"clusters,omitempty" yaml:"clusters" ` Instances map[string]InstanceInfo `json:"instances,omitempty" yaml:"instances"` }
Click to show internal directories.
Click to hide internal directories.