Documentation ¶
Index ¶
Constants ¶
View Source
const ( Attempts key = iota Retry )
Variables ¶
This section is empty.
Functions ¶
func GetAttemptsFromContext ¶
func GetRetryFromContext ¶
Types ¶
type Backend ¶
type Backend struct { URL *url.URL Alive bool ReverseProxy *httputil.ReverseProxy // contains filtered or unexported fields }
type BackendPool ¶
type BackendPool struct {
// contains filtered or unexported fields
}
func (*BackendPool) CheckHealth ¶
func (b *BackendPool) CheckHealth()
func (*BackendPool) GetNextAliveBackend ¶
func (b *BackendPool) GetNextAliveBackend() (*Backend, error)
func (*BackendPool) MarkAsDown ¶
func (b *BackendPool) MarkAsDown(backendUrl *url.URL)
Click to show internal directories.
Click to hide internal directories.