etcdv3

package module
v0.0.0-...-fcd9dd9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 9 Imported by: 0

README

etcdv3

service register/discovery with etcdv3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(etcdAddr, serviceName string) resolver.Builder

Types

type EtcdRegister

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

func NewEtcdRegister

func NewEtcdRegister(etcdAddr, serviceName, serviceAddr string, ttl int64) *EtcdRegister

func (*EtcdRegister) Register

func (e *EtcdRegister) Register() error

func (*EtcdRegister) UnRegister

func (e *EtcdRegister) UnRegister() error

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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