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.
Click to show internal directories.
Click to hide internal directories.