config

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Risc0ServerEndpoint  string `env:"RISC0_SERVER_ENDPOINT"`
	Halo2ServerEndpoint  string `env:"HALO2_SERVER_ENDPOINT"`
	ZKWasmServerEndpoint string `env:"ZKWASM_SERVER_ENDPOINT"`
	WasmServerEndpoint   string `env:"WASM_SERVER_ENDPOINT"`
	DatabaseDSN          string `env:"DATABASE_DSN"`
	BootNodeMultiAddr    string `env:"BOOTNODE_MULTIADDR"`
	ChainEndpoint        string `env:"CHAIN_ENDPOINT,optional"`
	ProjectContractAddr  string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
	ProverContractAddr   string `env:"PROVER_CONTRACT_ADDRESS,optional"`
	ProverOperatorPriKey string `env:"PROVER_OPERATOR_PRIVATE_KEY,optional"`
	IoTeXChainID         int    `env:"IOTEX_CHAINID"`
	SchedulerEpoch       uint64 `env:"SCHEDULER_EPOCH,optional"`
	BeginningBlockNumber uint64 `env:"BEGINNING_BLOCK_NUMBER,optional"`
	IPFSEndpoint         string `env:"IPFS_ENDPOINT"`
	ProjectFileDir       string `env:"PROJECT_FILE_DIRECTORY,optional"`
	ProjectCacheDir      string `env:"PROJECT_CACHE_DIRECTORY,optional"`
	LocalDBDir           string `env:"LOCAL_DB_DIRECTORY,optional"`
	LogLevel             int    `env:"LOG_LEVEL,optional"`
	SequencerPubKey      string `env:"SEQUENCER_PUBKEY,optional"`
	// contains filtered or unexported fields
}

func Get

func Get() (*Config, error)

func (*Config) Env

func (c *Config) Env() string

func (*Config) Init

func (c *Config) Init() error

func (*Config) Print

func (c *Config) Print()

Jump to

Keyboard shortcuts

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