env

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpaceWorkingDir = "SPACE_APP_DIR"
	LogLevel        = "LOG_LEVEL"
	IpfsAddr        = "IPFS_ADDR"
	MongoUsr        = "MONGO_USR"
	MongoPw         = "MONGO_PW"
	MongoHost       = "MONGO_HOST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceEnv

type SpaceEnv interface {
	CurrentFolder() (string, error)
	WorkingFolder() string
	LogLevel() string
}

func New

func New() SpaceEnv

Loads environment from .env file for dev mode

func NewDefault added in v0.0.6

func NewDefault() SpaceEnv

TODO: use this one after figuring textile keys

Jump to

Keyboard shortcuts

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