interfaces

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEndpoints = errors.New("no endpoints available")

没有端点可选择时返回的错误信息

Functions

This section is empty.

Types

type Balancer

type Balancer interface {
	Endpoint() (endpoint.Endpoint, error)
}

端点负载均衡接口

type Instancer

type Instancer interface {
	Register(chan<- events.Event)
	Deregister(chan<- events.Event)
	Stop()
}

服务发现类接口

type Registrar

type Registrar interface {
	Register()
	Deregister()
}

服务注册接口

Jump to

Keyboard shortcuts

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