consul

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulRegistry

func NewConsulRegistry(opts ...registry.Option) registry.Registry

Types

type ConsulRegistry

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

func (*ConsulRegistry) GetServices

func (r *ConsulRegistry) GetServices() ([]*runtime.ServiceDesc, error)

获取注册服务器的信息

func (*ConsulRegistry) Register

func (r *ConsulRegistry) Register(node *runtime.ServiceDesc) error

func (*ConsulRegistry) Unregister

func (r *ConsulRegistry) Unregister() error

注销已注册的服务

Jump to

Keyboard shortcuts

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