registercenter

package
v0.0.0-...-e86600b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Register(endpoints []string, service Service, ttl int64) error
	Close() error
}

Publisher 服务发布

type Service

type Service struct {
	Name string
	Url  string
}

type Subscriber

type Subscriber interface {
	Listen(endpoints []string, serviceName string) error
	GetService(name string) (Service, bool)
	Close() error
}

Subscriber 服务订阅

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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