Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackwardProxy
deprecated
type BackwardProxy = ReverseProxy
Deprecated: BackwardProxy is deprecated, use ReverseProxy instead.
type Config ¶
type Config struct { ServerInfo *rpcinfo.EndpointBasicInfo Resolver discovery.Resolver Balancer loadbalance.Loadbalancer Pool remote.ConnPool FixedTargets string // A comma separated list of host ports that user specify to use. RPCConfig rpcinfo.RPCConfig }
Config contains basic components used in service discovery process.
type ContextHandler ¶ added in v0.1.0
ContextHandler is to handle context info, it just be used for passing params when client/server initialization. Eg: Customized endpoint.MiddlewareBuilder need get init information to judge if it is necessary to add the middleware into the call chain.
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.