proxy

package
v0.0.0-...-d8b0a59 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 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 Component

type Component struct {
	nmq.Base
	// contains filtered or unexported fields
}

func New

func New() *Component

func (*Component) Commands

func (c *Component) Commands() []*cobra.Command

func (*Component) Dependencies

func (c *Component) Dependencies() []string

func (*Component) Init

func (c *Component) Init(ctx nmq.Context) error

func (*Component) Name

func (c *Component) Name() string

func (*Component) Run

func (c *Component) Run(cmd *cobra.Command, args []string) error

func (*Component) Services

func (c *Component) Services() map[string]any

func (*Component) Start

func (c *Component) Start(context.Context) error

func (*Component) Stop

func (c *Component) Stop(context.Context) error

func (*Component) Version

func (c *Component) Version() string

Directories

Path Synopsis
Package healthcheck 提供主动和被动两种健康检查机制。
Package healthcheck 提供主动和被动两种健康检查机制。
middlewares
tcp
service/loadbalancer/failover
Package failover 实现故障转移(Failover)机制: 当主后端(handler)不可用或返回特定错误状态码时, 自动将请求转发给备用后端(fallbackHandler); 两个后端都不可用时返回 503 Service Unavailable。
Package failover 实现故障转移(Failover)机制: 当主后端(handler)不可用或返回特定错误状态码时, 自动将请求转发给备用后端(fallbackHandler); 两个后端都不可用时返回 503 Service Unavailable。
service/loadbalancer/hrw
Package hrw 实现了 Highest Random Weight (HRW),即 Rendezvous Hashing 一致性哈希负载均衡算法。
Package hrw 实现了 Highest Random Weight (HRW),即 Rendezvous Hashing 一致性哈希负载均衡算法。
service/loadbalancer/mirror
Package mirror 实现 HTTP 请求流量镜像(Traffic Mirroring)。
Package mirror 实现 HTTP 请求流量镜像(Traffic Mirroring)。
service/tcp
Package tcp 提供 TCP 服务的管理和构建能力。
Package tcp 提供 TCP 服务的管理和构建能力。
Package tcp 提供 TCP 服务的加权轮询(Weighted Round Robin)负载均衡器。
Package tcp 提供 TCP 服务的加权轮询(Weighted Round Robin)负载均衡器。
tls

Jump to

Keyboard shortcuts

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