etcd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 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

This section is empty.

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

func (*Provider) Init

Jump to

Keyboard shortcuts

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