naming

package
v0.0.0-...-8a5cab9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "etcdv3_naming"

Prefix should start and end with no slash

Variables

This section is empty.

Functions

func New

func New(prefix string, endPoints []string, interval time.Duration, ttl int) *discovery

func Register

func Register(name, host, port string, endPoints string, interval time.Duration, ttl int) (cancelFunc context.CancelFunc, err error)

Register

Types

type Config

type Config struct {
	Nodes  []string
	Region string
	Zone   string
	Env    string
	Host   string
}

Deregister un register Config discovery configures.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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