configuration

package
v0.0.0-...-bc2656d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DevStage     = "dev"
	ProdStage    = "prod"
	TestStage    = "test"
	StagingStage = "staging"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Service  string
	Stage    string
	Version  string
	Postgres postgres
}

func NewConfiguration

func NewConfiguration() (Configuration, error)

func (Configuration) IsDevEnv

func (c Configuration) IsDevEnv() bool

func (Configuration) IsProdEnv

func (c Configuration) IsProdEnv() bool

func (Configuration) IsStagingEnv

func (c Configuration) IsStagingEnv() bool

func (Configuration) IsTestEnv

func (c Configuration) IsTestEnv() bool

Jump to

Keyboard shortcuts

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