rpcgateway

package
v0.0.0-...-48366c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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)

func (*RPCGateway) Start

func (r *RPCGateway) Start(ctx context.Context) error

func (*RPCGateway) Stop

func (r *RPCGateway) Stop(ctx context.Context) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL