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 {
	ServiceEndpoint       string `env:"HTTP_SERVICE_ENDPOINT"`
	DatabaseDSN           string `env:"DATABASE_DSN"`
	DefaultDatasourceURI  string `env:"DEFAULT_DATASOURCE_URI"`
	BootNodeMultiAddr     string `env:"BOOTNODE_MULTIADDR"`
	IoTeXChainID          int    `env:"IOTEX_CHAINID"`
	ChainEndpoint         string `env:"CHAIN_ENDPOINT,optional"`
	ProjectContractAddr   string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
	ProverContractAddr    string `env:"PROVER_CONTRACT_ADDRESS,optional"`
	IPFSEndpoint          string `env:"IPFS_ENDPOINT"`
	OperatorPriKey        string `env:"OPERATOR_PRIVATE_KEY,optional"`
	OperatorPriKeyED25519 string `env:"OPERATOR_PRIVATE_KEY_ED25519,optional"`
	ProjectFileDir        string `env:"PROJECT_FILE_DIRECTORY,optional"`
	ProjectCacheDir       string `env:"PROJECT_CACHE_DIRECTORY,optional"`
	LocalDBDir            string `env:"LOCAL_DB_DIRECTORY,optional"`
	SchedulerEpoch        uint64 `env:"SCHEDULER_EPOCH,optional"`
	BeginningBlockNumber  uint64 `env:"BEGINNING_BLOCK_NUMBER,optional"`
	LogLevel              int    `env:"LOG_LEVEL,optional"`
	SequencerPubKey       string `env:"SEQUENCER_PUBKEY,optional"`
	ContractWhitelist     string `env:"CONTRACT_WHITELIST,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