Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCGateway ¶
type RPCGateway struct {
// contains filtered or unexported fields
}
func NewRPCGateway ¶
func NewRPCGateway(config RPCGatewayConfig) *RPCGateway
func (*RPCGateway) GetCurrentTarget ¶
func (r *RPCGateway) GetCurrentTarget() string
func (*RPCGateway) ServeHTTP ¶
func (r *RPCGateway) ServeHTTP(w http.ResponseWriter, req *http.Request)
type RPCGatewayConfig ¶
type RPCGatewayConfig struct { Metrics metrics.Config `yaml:"metrics"` Proxy proxy.ProxyConfig `yaml:"proxy"` HealthChecks proxy.HealthCheckConfig `yaml:"healthChecks"` Targets []proxy.TargetConfig `yaml:"targets"` }
func NewRPCGatewayFromConfigBytes ¶
func NewRPCGatewayFromConfigBytes(configBytes []byte) (*RPCGatewayConfig, error)
func NewRPCGatewayFromConfigFile ¶
func NewRPCGatewayFromConfigFile(path string) (*RPCGatewayConfig, error)
func NewRPCGatewayFromConfigString ¶
func NewRPCGatewayFromConfigString(configString string) (*RPCGatewayConfig, error)
Click to show internal directories.
Click to hide internal directories.