tarantool3

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Module string `yaml:"module"`
}

App - general information about the module

type Config

type Config struct {
	Groups Group `yaml:"groups"`
}

Config - configuration for all groups based on https://www.tarantool.io/en/doc/latest/getting_started/vshard_quick/#step-4-defining-the-cluster-topology.

func (*Config) Convert

type Group

type Group struct {
	Storages *Storages `yaml:"storages,omitempty"`
}

Group is a structure for each group configuration

type IProto

type IProto struct {
	Listen []Listen `yaml:"listen"`
}

IProto configuration

type Instance

type Instance struct {
	IProto IProto `yaml:"iproto"`
}

Instance in the Replicaset

type Listen

type Listen struct {
	URI string `yaml:"uri"`
}

Listen configuration (URI for connection)

type Replicaset

type Replicaset struct {
	Leader    string              `yaml:"leader"`
	Instances map[string]Instance `yaml:"instances"`
}

Replicaset configuration

type Replication

type Replication struct {
	Failover string `yaml:"failover"`
}

Replication configuration

type Sharding

type Sharding struct {
	Roles []string `yaml:"roles"`
}

Sharding configuration

type Storages

type Storages struct {
	App         App                   `yaml:"app"`
	Sharding    Sharding              `yaml:"sharding"`
	Replication Replication           `yaml:"replication"`
	Replicasets map[string]Replicaset `yaml:"replicasets"`
}

Storages configuration

Jump to

Keyboard shortcuts

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