caplincli

package
v1.9.7-0...-0340631 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObtainJwtSecret

func ObtainJwtSecret(ctx *cli.Context) ([]byte, error)

Types

type CaplinCliCfg

type CaplinCliCfg struct {
	*sentinelcli.SentinelCliCfg

	Chaindata             string        `json:"chaindata"`
	ErigonPrivateApi      string        `json:"erigon_private_api"`
	AllowedEndpoints      []string      `json:"endpoints"`
	BeaconApiReadTimeout  time.Duration `json:"beacon_api_read_timeout"`
	BeaconApiWriteTimeout time.Duration `json:"beacon_api_write_timeout"`
	BeaconAddr            string        `json:"beacon_addr"`
	BeaconProtocol        string        `json:"beacon_protocol"`
	DataDir               string        `json:"data_dir"`
	RunEngineAPI          bool          `json:"run_engine_api"`
	EngineAPIAddr         string        `json:"engine_api_addr"`
	EngineAPIPort         int           `json:"engine_api_port"`
	MevRelayUrl           string        `json:"mev_relay_url"`
	CustomConfig          string        `json:"custom_config"`
	CustomGenesisState    string        `json:"custom_genesis_state"`
	MaxPeerCount          uint64        `json:"max_peer_count"`
	JwtSecret             []byte

	AllowedMethods   []string `json:"allowed_methods"`
	AllowedOrigins   []string `json:"allowed_origins"`
	AllowCredentials bool     `json:"allow_credentials"`

	Dirs datadir.Dirs
}

func SetupCaplinCli

func SetupCaplinCli(ctx *cli.Context) (cfg *CaplinCliCfg, err error)

Jump to

Keyboard shortcuts

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