config

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 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"`
	ProjectContractAddress     string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
	ProverContractAddress      string `env:"PROVER_CONTRACT_ADDRESS,optional"`
	BlockNumberContractAddress string `env:"BLOCK_NUMBER_CONTRACT_ADDRESS,optional"`
	MultiCallContractAddress   string `env:"MULTICALL_CONTRACT_ADDRESS,optional"`
	IPFSEndpoint               string `env:"IPFS_ENDPOINT"`
	DIDAuthServerEndpoint      string `env:"DIDAUTH_SERVER_ENDPOINT"`
	OperatorPrivateKey         string `env:"OPERATOR_PRIVATE_KEY,optional"`
	OperatorPrivateKeyED25519  string `env:"OPERATOR_PRIVATE_KEY_ED25519,optional"`
	ProjectFileDirectory       string `env:"PROJECT_FILE_DIRECTORY,optional"`
	ProjectCacheDirectory      string `env:"PROJECT_CACHE_DIRECTORY,optional"`
	SchedulerEpoch             uint64 `env:"SCHEDULER_EPOCH,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