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 ¶
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 (p *Provider) GetTopology() (map[vshardrouter.ReplicasetInfo][]vshardrouter.InstanceInfo, error)
func (*Provider) Init ¶
func (p *Provider) Init(c vshardrouter.TopologyController) error
Click to show internal directories.
Click to hide internal directories.