etcdx

package
v0.0.0-...-3de5202 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provider = wire.NewSet(
	NewClients,
)

Functions

func NewClient

func NewClient(config *Config) (*clientv3.Client, error)

func NewClients

func NewClients(configs Configs) (map[string]*clientv3.Client, error)

Types

type Config

type Config struct {
	Endpoints []string `mapstructure:"endpoints" json:"endpoints" yaml:"endpoints"`
	Username  string   `mapstructure:"username" json:"username" yaml:"username"`
	Password  string   `mapstructure:"password" json:"password" yaml:"password"`
}

type Configs

type Configs map[string]*Config

Jump to

Keyboard shortcuts

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