registry

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener added in v1.1.0

type Listener interface {
	Next() (*ServiceEvent, error)
	Close()
}

type MockRegistry added in v1.1.0

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

func (*MockRegistry) Destroy added in v1.1.0

func (r *MockRegistry) Destroy()

func (*MockRegistry) GetUrl added in v1.1.0

func (r *MockRegistry) GetUrl() common.URL

func (*MockRegistry) IsAvailable added in v1.1.0

func (r *MockRegistry) IsAvailable() bool

func (*MockRegistry) MockEvent added in v1.1.0

func (r *MockRegistry) MockEvent(event *ServiceEvent)

func (*MockRegistry) Register added in v1.1.0

func (*MockRegistry) Register(url common.URL) error

func (*MockRegistry) Subscribe added in v1.1.0

func (r *MockRegistry) Subscribe(common.URL) (Listener, error)

type Registry

type Registry interface {
	common.Node
	//used for service provider calling , register services to registry
	//And it is also used for service consumer calling , register services cared about ,for dubbo's admin monitoring.
	Register(url common.URL) error

	//used for service consumer ,start subscribe service event from registry
	Subscribe(common.URL) (Listener, error)
}

Extension - Registry

func NewMockRegistry added in v1.1.0

func NewMockRegistry(url *common.URL) (Registry, error)

type ServiceEvent added in v1.1.0

type ServiceEvent struct {
	Action  remoting.EventType
	Service common.URL
}

func (ServiceEvent) String added in v1.1.0

func (e ServiceEvent) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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