etcd

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 6 Imported by: 0

README

Tarantool ETCD topology provider based on moonlibs/config

Documentation

Overview

Package etcd based on moonlibs config library https://github.com/moonlibs/config?tab=readme-ov-file#multi-shard-topology-for-custom-sharding-etcdclustermaster

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNodesError     = fmt.Errorf("etcd nodes err")
	ErrClusterError   = fmt.Errorf("etcd cluster err")
	ErrInstancesError = fmt.Errorf("etcd instances err")
	ErrInvalidUUID    = fmt.Errorf("invalid uuid")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	EtcdConfig client.Config
	// Path for storages configuration in etcd for example /project/store/storage
	Path string
}

type Provider

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

func NewProvider

func NewProvider(ctx context.Context, cfg Config) (*Provider, error)

NewProvider returns provider to etcd configuration Set here path to etcd storages config and etcd config

func (*Provider) Close

func (p *Provider) Close()

Close must close connection, but etcd v2 client has no interfaces for this

func (*Provider) GetTopology

nolint:contextcheck

func (*Provider) Init

Jump to

Keyboard shortcuts

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