config

package
v1.2.31 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 2 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         `yaml:"ENVIRONMENT"`
	Port                              string         `yaml:"PORT"`
	MonitoringPort                    string         `yaml:"MONITORING_PORT"`
	LogLevel                          string         `yaml:"LOG_LEVEL"`
	DB                                db.Settings    `yaml:"DB"`
	ServiceName                       string         `yaml:"SERVICE_NAME"`
	ServiceVersion                    string         `yaml:"SERVICE_VERSION"`
	GRPCPort                          string         `yaml:"GRPC_PORT"`
	TraceMonitorView                  string         `yaml:"TRACE_MONITOR_VIEW"`
	ElasticSearchAppSearchHost        string         `yaml:"ELASTIC_SEARCH_APP_SEARCH_HOST"`
	ElasticSearchAppSearchToken       string         `yaml:"ELASTIC_SEARCH_APP_SEARCH_TOKEN"`
	ElasticSearchDeviceStatusHost     string         `yaml:"ELASTIC_SEARCH_DEVICE_STATUS_HOST"`
	ElasticSearchDeviceStatusToken    string         `yaml:"ELASTIC_SEARCH_DEVICE_STATUS_TOKEN"`
	IPFSNodeEndpoint                  string         `yaml:"IPFS_NODE_ENDPOINT"`
	DrivlyAPIKey                      string         `yaml:"DRIVLY_API_KEY"`
	DrivlyVINAPIURL                   string         `yaml:"DRIVLY_VIN_API_URL"`
	DrivlyOfferAPIURL                 string         `yaml:"DRIVLY_OFFER_API_URL"`
	Redis                             redis.Settings `yaml:"REDIS"`
	FuelAPIVehiclesEndpoint           string         `yaml:"FUEL_API_VEHICLES_ENDPOINT"`
	FuelAPIImagesEndpoint             string         `yaml:"FUEL_API_IMAGES_ENDPOINT"`
	FuelAPIKey                        string         `yaml:"FUEL_API_KEY"`
	NHTSARecallsFileURL               string         `yaml:"NHTSA_RECALLS_FILE_URL"`
	VincarioAPIURL                    string         `yaml:"VINCARIO_API_URL"`
	VincarioAPIKey                    string         `yaml:"VINCARIO_API_KEY"`
	VincarioAPISecret                 string         `yaml:"VINCARIO_API_SECRET"`
	AutoIsoAPIUid                     string         `yaml:"AUTO_ISO_API_UID"`
	AutoIsoAPIKey                     string         `yaml:"AUTO_ISO_API_KEY"`
	EthereumRPCURL                    string         `yaml:"ETHEREUM_RPC_URL"`
	PrivateKeyMode                    bool           `yaml:"PRIVATE_KEY_MODE"`
	SenderPrivateKey                  string         `yaml:"SENDER_PRIVATE_KEY"`
	KMSKeyID                          string         `yaml:"KMS_KEY_ID"`
	EthereumSendTransaction           bool           `yaml:"ETHEREUM_SEND_TRANSACTION"`
	EthereumRegistryAddress           string         `yaml:"ETHEREUM_REGISTRY_ADDRESS"`
	TablelandAPIGateway               string         `yaml:"TABLELAND_API_GATEWAY"`
	DatGroupURL                       string         `yaml:"DAT_GROUP_URL"`
	DatGroupCustomerLogin             string         `yaml:"DAT_GROUP_CUSTOMER_LOGIN"`
	DatGroupCustomerNumber            string         `yaml:"DAT_GROUP_CUSTOMER_NUMBER"`
	DatGroupInterfacePartnerSignature string         `yaml:"DAT_GROUP_INTERFACE_PARTNER_SIGNATURE"`
	DatGroupCustomerSignature         string         `yaml:"DAT_GROUP_CUSTOMER_SIGNATURE"`
	SearchServiceAPIURL               string         `yaml:"SEARCH_SERVICE_API_URL"`
	SearchServiceAPIKey               string         `yaml:"SEARCH_SERVICE_API_KEY"`
	SearchServiceIndexName            string         `yaml:"SEARCH_SERVICE_DEVICE_DEFINITION_INDEX"`
}

func (*Settings) IsProd added in v1.0.31

func (s *Settings) IsProd() bool

Jump to

Keyboard shortcuts

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