config

package
v0.0.0-...-dbfd509 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// service config
	ProjectID    string        `env:"GOOGLE_CLOUD_PROJECT,required"` // GCP function runtime
	Timeout      time.Duration `env:"TIMEOUT,default=10s,strict"`
	FunctionName string        `env:"FUNCTION_NAME,default=do_that_thing"`
	Port         string        `env:"PORT,default=8080"`
}

Configuration is exposed for the application to be able to see what the application config looks like

func Load

func Load() Configuration

Load loads the configuration using the envdecode package

Jump to

Keyboard shortcuts

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