moonlibs

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 3 Imported by: 0

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

type InstanceInfo

type InstanceInfo struct {
	Cluster string
	Box     struct {
		Listen       string `json:"listen,omitempty" yaml:"listen" mapstructure:"listen"`
		InstanceUUID string `yaml:"instance_uuid" mapstructure:"instance_uuid" json:"instanceUUID,omitempty"`
	}
}

type SourceTopologyConfig

type SourceTopologyConfig struct {
	Clusters  map[string]ClusterInfo  `json:"clusters,omitempty" yaml:"clusters" `
	Instances map[string]InstanceInfo `json:"instances,omitempty" yaml:"instances"`
}

Jump to

Keyboard shortcuts

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