registry

package
v0.1.78 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
}

type Registry

type Registry interface {
	Register(ctx context.Context, si ServiceInstance) error
	UnRegister(ctx context.Context, si ServiceInstance) error

	ListService(ctx context.Context, serviceName string) ([]ServiceInstance, error)

	Subscribe(serviceName string) (<-chan Event, error)

	io.Closer
}

type ServiceInstance

type ServiceInstance struct {
	Name   string
	Addr   string
	Weight uint32
	Group  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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