config

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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"`
	ChainEndpoint          string `env:"CHAIN_ENDPOINT"`
	ProjectContractAddress string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
	DatabaseDSN            string `env:"DATABASE_DSN"`
	BootNodeMultiAddr      string `env:"BOOTNODE_MULTIADDR"`
	ZnodeContractAddress   string `env:"ZNODE_CONTRACT_ADDRESS"`
	IoTeXChainID           int    `env:"IOTEX_CHAINID"`
	IPFSEndpoint           string `env:"IPFS_ENDPOINT"`
	IoID                   string `env:"IO_ID"`
	ProjectFileDirectory   string `env:"PROJECT_FILE_DIRECTORY,optional"`
	LogLevel               int    `env:"LOG_LEVEL,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