env

package
v0.0.20-dev Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SpaceWorkingDir      = "SPACE_APP_DIR"
	LogLevel             = "LOG_LEVEL"
	IpfsAddr             = "IPFS_ADDR"
	IpfsNode             = "IPFS_NODE"
	IpfsNodeAddr         = "IPFS_NODE_ADDR"
	IpfsNodePath         = "IPFS_NODE_PATH"
	MongoUsr             = "MONGO_USR"
	MongoPw              = "MONGO_PW"
	MongoHost            = "MONGO_HOST"
	MongoRepSet          = "MONGO_REPLICA_SET"
	ServicesAPIURL       = "SERVICES_API_URL"
	VaultAPIURL          = "VAULT_API_URL"
	VaultSaltSecret      = "VAULT_SALT_SECRET"
	ServicesHubAuthURL   = "SERVICES_HUB_AUTH_URL"
	TextileHubTarget     = "TXL_HUB_TARGET"
	TextileHubMa         = "TXL_HUB_MA"
	TextileThreadsTarget = "TXL_THREADS_TARGET"
	TextileHubGatewayUrl = "TXL_HUB_GATEWAY_URL"
	TextileUserKey       = "TXL_USER_KEY"
	TextileUserSecret    = "TXL_USER_SECRET"
)

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

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