env

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string
const (
	Local      Env = "local"
	Dev        Env = "dev"
	Test       Env = "test"
	Staging    Env = "staging"
	Production Env = "production"
)

func New

func New(s string) Env

func (Env) IsDev

func (e Env) IsDev() bool

func (Env) IsLocal

func (e Env) IsLocal() bool

func (Env) IsProduction

func (e Env) IsProduction() bool

func (Env) IsStaging

func (e Env) IsStaging() bool

func (Env) IsTest

func (e Env) IsTest() bool

func (Env) Valid

func (e Env) Valid() bool

type Info

type Info struct {
	Server  string
	Version string
	BuildAt int64
	Envv    Env
}

func NewInfo

func NewInfo(server, version string, buildAt int64, envv Env) Info

Jump to

Keyboard shortcuts

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