config

package
v0.0.0-...-c99f1b3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty(val string) bool

func NewStdIOStreams

func NewStdIOStreams() std

func ValidateConfig

func ValidateConfig(g Config) error

Types

type Config

type Config struct {
	IOStreams     IOStreams
	AWSRegion     string `env:"AWS_REGION" envDefault:"us-west-2"`
	AWSBucketName string `env:"AWS_BUCKET" envDefault:"github-ghostsquad-s3-file-explorer"`
	Port          int    `env:"PORT" envDefault:"8080"`
	BindAddress   string `env:"BIND_ADDRESS"`
}

type IOStreams

type IOStreams interface {
	In() io.Reader
	Out() io.Writer
	ErrOut() io.Writer
}

Jump to

Keyboard shortcuts

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