config

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 1 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"`
	LogLevel                  string      `yaml:"LOG_LEVEL"`
	Port                      string      `yaml:"PORT"`
	GRPCPort                  string      `yaml:"GRPC_PORT"`
	MonitoringPort            string      `yaml:"MONITORING_PORT"`
	DB                        db.Settings `yaml:"DB"`
	JwtKeySetURL              string      `yaml:"JWT_KEY_SET_URL"`
	ServiceName               string      `yaml:"SERVICE_NAME"`
	ServiceVersion            string      `yaml:"SERVICE_VERSION"`
	DevicesGRPCAddr           string      `yaml:"DEVICES_GRPC_ADDR"`
	DeviceDataGRPCAddr        string      `yaml:"DEVICE_DATA_GRPC_ADDR"`
	DeviceDefinitionsGRPCAddr string      `yaml:"DEVICE_DEFINITIONS_GRPC_ADDR"`
	VincarioAPIURL            string      `yaml:"VINCARIO_API_URL"`
	VincarioAPISecret         string      `yaml:"VINCARIO_API_SECRET"`
	VincarioAPIKey            string      `yaml:"VINCARIO_API_KEY"`
	DrivlyAPIKey              string      `yaml:"DRIVLY_API_KEY"`
	DrivlyVINAPIURL           string      `yaml:"DRIVLY_VIN_API_URL"`
	DrivlyOfferAPIURL         string      `yaml:"DRIVLY_OFFER_API_URL"`
	GoogleMapsAPIKey          string      `yaml:"GOOGLE_MAPS_API_KEY"`

	NATSURL                      string `yaml:"NATS_URL"`
	NATSStreamName               string `yaml:"NATS_STREAM_NAME"`
	NATSValuationSubject         string `yaml:"NATS_VALUATION_SUBJECT"`
	NATSAckTimeout               string `yaml:"NATS_ACK_TIMEOUT"`
	NATSValuationDurableConsumer string `yaml:"NATS_VALUATION_DURABLE_CONSUMER"`
	NATSOfferSubject             string `yaml:"NATS_OFFER_SUBJECT"`
	NATSOfferDurableConsumer     string `yaml:"NATS_OFFER_DURABLE_CONSUMER"`
}

func (*Settings) IsProduction

func (s *Settings) IsProduction() bool

Jump to

Keyboard shortcuts

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