registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
}

Configuration ...

type Nop

type Nop struct{}

Nop registry, used for local development/debugging

func (Nop) Close

func (n Nop) Close() error

Close ...

func (Nop) DeregisterService

func (n Nop) DeregisterService(context.Context, *server.ServiceInfo) error

DeregisterService ...

func (Nop) RegisterService

func (n Nop) RegisterService(context.Context, *server.ServiceInfo) error

RegisterService ...

type Registry

type Registry interface {
	RegisterService(context.Context, *server.ServiceInfo) error
	DeregisterService(context.Context, *server.ServiceInfo) error
	io.Closer
}

Registry register/deregister service registry impl should control rpc timeout

type Rule

type Rule struct {
	Target  string
	Pattern string
}

Rule ...

type ServerInstance

type ServerInstance struct {
	Scheme string
	IP     string
	Port   int
	Labels map[string]string
}

ServerInstance ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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