etcd

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoints []string
	TTL       int
	KeepAlive int
}

type Etcd

type Etcd struct {
	TTL int64
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf Config) (*Etcd, error)

func (*Etcd) Register

func (e *Etcd) Register(name string, port int) error

func (*Etcd) Resolver

func (e *Etcd) Resolver() grpc.Resolver

Jump to

Keyboard shortcuts

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