config

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 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 {
	LogLevel                 slog.Level `env:"LOG_LEVEL,optional"`
	ServiceEndpoint          string     `env:"HTTP_SERVICE_ENDPOINT"`
	PrvKey                   string     `env:"PRIVATE_KEY,optional"`
	DatabaseDSN              string     `env:"DATABASE_DSN"`
	ChainEndpoint            string     `env:"CHAIN_ENDPOINT,optional"`
	BeginningBlockNumber     uint64     `env:"BEGINNING_BLOCK_NUMBER,optional"`
	IoIDProjectID            uint64     `env:"IOID_PROJECT_ID,optional"`
	IoIDRegistryContractAddr string     `env:"IOID_REGISTRY_CONTRACT_ADDRESS,optional"`
	IoIDContractAddr         string     `env:"IOID_CONTRACT_ADDRESS,optional"`
	ProjectContractAddr      string     `env:"PROJECT_CONTRACT_ADDRESS,optional"`
	W3bstreamProjectID       string     `env:"W3BSTREAM_PROJECT_ID,optional"`
	W3bstreamServiceEndpoint string     `env:"W3BSTREAM_SERVICE_ENDPOINT,optional"`
	// contains filtered or unexported fields
}

func Get

func Get() (*Config, 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