config

package
v0.0.0-...-49df4db Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName    = "controller"
	ServiceVersion = "1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DB struct {
		User                   string `env:"DB_USER" envDefault:"postgres"`
		Password               string `env:"DB_PASS"`
		Name                   string `env:"DB_NAME" envDefault:"postgres"`
		InstanceConnectionName string `env:"INSTANCE_CONNECTION_NAME"`
	}
	MathRequestTopic       string `env:"MATH_REQUEST_TOPIC,required"`
	MathResultSubscription string `env:"MATH_RESULT_SUBSCRIPTION,required"`
	GoogleCloudProject     string `env:"GOOGLE_CLOUD_PROJECT,required"`
	ListenAddr             string `env:"LISTEN_ADDR" envDefault:"0.0.0.0:8080"`
}

func Parse

func Parse() (*Options, error)

Jump to

Keyboard shortcuts

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