etcd

package
v0.0.0-...-2b4093a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VSPrefix     = "virtualserver"
	PoolPrefix   = "pool"
	AddressLabel = "address"
)

key label

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps a etcd client.

func New

func New(endpoints, prefix, certFile, keyFile, trustedCAFile string) (*Client, error)

New returns a Client object.

func (*Client) Run

func (c *Client) Run(balancer *balancer.Balancer)

Run traps into a dead loop to watch and update key changes.

Jump to

Keyboard shortcuts

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