etcd

package
v0.0.0-...-127562d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertETCDConfig

func ConvertETCDConfig(conf Config) (clientv3.Config, error)

Types

type Client

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

func New

func New(conf Config) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (Client) Get

func (c Client) Get(key string) (*clientv3.GetResponse, error)

func (Client) GetMemberList

func (c Client) GetMemberList() (*clientv3.MemberListResponse, error)

func (Client) Set

func (c Client) Set(key, value string) error

type Config

type Config struct {
	Endpoint      string `yaml:"endpoint"`
	CertFile      string `yaml:"clientCert"`
	KeyFile       string `yaml:"clientKey"`
	TrustedCAFile string `yaml:"caCert"`
}

Jump to

Keyboard shortcuts

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