rpcgateway

package
v0.0.0-...-e46861f Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 14 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, error)

func NewRPCGatewayFromConfigFile

func NewRPCGatewayFromConfigFile(s string) (*RPCGateway, error)

NewRPCGatewayFromConfigFile creates an instance of RPCGateway from provided configuration file.

func (*RPCGateway) ServeHTTP

func (r *RPCGateway) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*RPCGateway) Start

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

func (*RPCGateway) Stop

func (r *RPCGateway) Stop(c 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.NodeProviderConfig `yaml:"targets"`
}

Jump to

Keyboard shortcuts

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