config

package
v0.0.0-...-e3100ca Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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 Config

type Config struct {
	ServiceTargetAddress        string `envconfig:"SERVICE_TARGET_ADDRESS" required:"true"`
	PromTemplateFile            string `envconfig:"PROM_TEMPLATE_FILE" required:"true"`
	PromOutputFile              string `envconfig:"PROM_OUTPUT_FILE" required:"true"`
	PromTargetGrpcServerOnePort int    `envconfig:"PROM_TARGET_GRPC_SERVER_ONE_PORT" required:"true"`
	PromTargetGrpcServerTwoPort int    `envconfig:"PROM_TARGET_GRPC_SERVER_TWO_PORT" required:"true"`
	DsTemplateFile              string `envconfig:"DS_TEMPLATE_FILE" required:"true"`
	DsOutputFile                string `envconfig:"DS_OUTPUT_FILE" required:"true"`
	DsServerPort                int    `envconfig:"DS_SERVER_PORT" required:"true"`
}

Config holds all configuration needed by this app.

func Read

func Read() (*Config, error)

Read reads the environment variables from the given file and returns a Config.

Jump to

Keyboard shortcuts

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