config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Environment               string         `env:"ENVIRONMENT"`
	LogLevel                  string         `env:"LOG_LEVEL"`
	Port                      int            `env:"PORT"`
	MonPort                   int            `env:"MON_PORT"`
	GRPCPort                  int            `env:"GRPC_PORT"`
	JWKKeySetURL              string         `env:"JWT_KEY_SET_URL"`
	DIMORegistryChainID       uint64         `env:"DIMO_REGISTRY_CHAIN_ID"`
	VehicleNFTContractAddress common.Address `env:"VEHICLE_NFT_CONTRACT_ADDRESS"`
	DB                        db.Settings    `envPrefix:"DB_"`
}

Settings contains the application config.

func LoadSettings

func LoadSettings(filePath string) (*Settings, error)

Jump to

Keyboard shortcuts

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