endpointer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 4 Imported by: 0

README

README

  • endpointer.go - 端点缓存与更新
  • balancer/ - 负载均衡
  • executor/ - 请求执行器

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultEndpointer

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

func (*DefaultEndpointer) Close

func (de *DefaultEndpointer) Close()

func (*DefaultEndpointer) Endpoints

func (de *DefaultEndpointer) Endpoints() ([]endpoint.Endpoint, error)

type Endpointer

type Endpointer interface {
	Endpoints() ([]endpoint.Endpoint, error)
}

端点生成器:根据服务发现类获取的服务地址以及端点构建工厂创建端点

func NewEndpointer

func NewEndpointer(src interfaces.Instancer, f endpoint.Factory, logger *log.Logger, options ...endpoint.EndpointerOption) Endpointer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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