proxy

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMaxFailedCount = errors.New("proxy: reach max failed count")

ErrMaxFailedCount is returned when the maximum number of failed proxy attempts is reached.

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	ID() string
	Target() string
	Weight() uint32
	IsAvailable() bool
	AddFailedCount(count uint) error
	ServeHTTP(c context.Context, ctx *app.RequestContext)
	Tag(key string) (value string, exist bool)
	Tags() map[string]string
	Close() error
}

Proxy defines the interface for a proxy service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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