httpcfg

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpCfg

type HttpCfg struct {
	Enabled                  bool
	PrivateApiAddr           string
	GraphQLEnabled           bool
	WithDatadir              bool // Erigon's database can be read by separated processes on same machine - in read-only mode - with full support of transactions. It will share same "OS PageCache" with Erigon process.
	DataDir                  string
	Dirs                     datadir.Dirs
	HttpListenAddress        string
	AuthRpcHTTPListenAddress string
	TLSCertfile              string
	TLSCACert                string
	TLSKeyFile               string
	HttpPort                 int
	AuthRpcPort              int
	HttpCORSDomain           []string
	HttpVirtualHost          []string
	AuthRpcVirtualHost       []string
	HttpCompression          bool
	API                      []string
	Gascap                   uint64
	MaxTraces                uint64
	WebsocketEnabled         bool
	WebsocketCompression     bool
	RpcAllowListFilePath     string
	RpcBatchConcurrency      uint
	RpcStreamingDisable      bool
	DBReadConcurrency        int
	TraceCompatibility       bool // Bug for bug compatibility for trace_ routines with OpenEthereum
	TxPoolApiAddr            string
	StateCache               kvcache.CoherentConfig
	Snap                     ethconfig.Snapshot
	Sync                     ethconfig.Sync

	// GRPC server
	GRPCServerEnabled      bool
	GRPCListenAddress      string
	GRPCPort               int
	GRPCHealthCheckEnabled bool

	// Raw TCP Server
	TCPServerEnabled bool
	TCPListenAddress string
	TCPPort          int

	JWTSecretPath   string // Engine API Authentication
	TraceRequests   bool   // Always trace requests in INFO level
	HTTPTimeouts    rpccfg.HTTPTimeouts
	AuthRpcTimeouts rpccfg.HTTPTimeouts
	EvmCallTimeout  time.Duration
	InternalCL      bool
	LogDirVerbosity string
	LogDirPath      string

	BatchLimit      int // Maximum number of requests in a batch
	ReturnDataLimit int // Maximum number of bytes returned from calls (like eth_call)
}

Jump to

Keyboard shortcuts

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