config

package
v0.0.0-...-e0d82eb Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BindOnIP     string
	MongoURL     string
	BillingPort  int32
	BillingURL   string
	OrderPort    int32
	OrderURL     string
	ShipmentPort int32
	ShipmentURL  string
	FraudPort    int32
	FraudURL     string
}

AppConfig is a struct that holds the configuration for the Order/Shipment/Fraud/Billing system.

func AppConfigFromEnv

func AppConfigFromEnv() (AppConfig, error)

AppConfigFromEnv creates an AppConfig from environment variables.

func (*AppConfig) ServiceHostPort

func (c *AppConfig) ServiceHostPort(service string) (string, error)

ServiceHostPort returns the host:port for a given service.

Jump to

Keyboard shortcuts

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