etcd

package
v0.0.0-...-aafc065 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdInit

func EtcdInit()

Types

type Etcd

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

func (*Etcd) GetService

func (e *Etcd) GetService(ctx context.Context, node string) (*registered.Service, error)

服务发现

func (*Etcd) Init

func (e *Etcd) Init(ctx context.Context, set ...registered.SetOption) error

初始化注册中心

func (*Etcd) Name

func (e *Etcd) Name() string

func (*Etcd) Registry

func (e *Etcd) Registry(ctx context.Context, node *registered.Node) (string, error)

服务注册

func (*Etcd) UnRegistry

func (e *Etcd) UnRegistry(ctx context.Context, node *registered.Node) error

服务反注册

Jump to

Keyboard shortcuts

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