Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoopback ¶
func SetDefault ¶
func SetDefault(proxy Proxy)
func SetLoopback ¶
Types ¶
type Option ¶
type Option func(*ReverseProxy)
func WithActivateMock ¶
WithActivateMock is activate httpmock
func WithInitialNodes ¶
WithInitialNodes is set initial nodes
type Proxy ¶
type ReverseProxy ¶
type ReverseProxy struct {
// Rebalancer is nodes rebalancer.
selector.Rebalancer
*direct.Builder
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) *ReverseProxy
func (*ReverseProxy) Apply ¶
func (r *ReverseProxy) Apply(nodes []selector.Node)
Apply is apply all nodes when any changes happen
func (*ReverseProxy) DoLoopback ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package singleflight provides a duplicate function call suppression mechanism.
|
Package singleflight provides a duplicate function call suppression mechanism. |
Click to show internal directories.
Click to hide internal directories.