Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackwardProxy ¶
BackwardProxy replaces the listen address with another one.
type Config ¶
type Config struct {
ServiceName string
Resolver discovery.Resolver
Balancer loadbalance.Loadbalancer
Pool remote.ConnPool
FixedTargets string // A comma separated list of host ports that user specify to use.
}
Config contains basic components used in service discovery process.
type ForwardProxy ¶
type ForwardProxy interface {
// Configure is provided to initialize the proxy.
Configure(*Config) error
// ResolveProxyInstance set instance for remote endpoint.
ResolveProxyInstance(ctx context.Context) error
}
ForwardProxy manages the service discovery, load balance and connection pooling processes.
Click to show internal directories.
Click to hide internal directories.