config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 4 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 {
	Port                      int    `env:"PORT"`
	MonPort                   int    `env:"MON_PORT"`
	EnablePprof               bool   `env:"ENABLE_PPROF"`
	GRPCPort                  int    `env:"GRPC_PORT"`
	DefinitionsGRPCAddr       string `env:"DEFINITIONS_GRPC_ADDR"`
	TokenExchangeJWTKeySetURL string `env:"TOKEN_EXCHANGE_JWK_KEY_SET_URL"`
	TokenExchangeIssuer       string `env:"TOKEN_EXCHANGE_ISSUER_URL"`
	VehicleNFTAddress         string `env:"VEHICLE_NFT_ADDRESS"`
	AfterMarketNFTAddress     string `env:"AFTERMARKET_NFT_ADDRESS"`
	SyntheticNFTAddress       string `env:"SYNTHETIC_NFT_ADDRESS"`
	TelemetryURL              string `env:"TELEMETRY_URL"`
	IdentityAPIURL            string `env:"IDENTITY_API_URL"`
	DIMORegistryChainID       int64  `env:"DIMO_REGISTRY_CHAIN_ID"`
	DISURL                    string `env:"DIS_URL"`
	SignerPrivateKey          string `env:"SIGNER_PRIVATE_KEY"`
	DexURL                    string `env:"DEX_URL"`
	DevLicense                string `env:"DEV_LICENSE"`
	FetchGRPCAddr             string `env:"FETCH_GRPC_ADDR"`
	RedirectURL               string `env:"DEV_LICENSE_REDIRECT_URL"`
	VINDataVersion            string `env:"VIN_DATA_VERSION"`
}

Settings contains the application config.

func LoadSettings added in v0.1.0

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

Jump to

Keyboard shortcuts

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