config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonConfigFileName   = "space.json"
	SpaceServerPort      = "space/rpcPort"
	SpaceStorePath       = "space/storePath"
	TextileHubTarget     = "space/textileHubTarget"
	TextileThreadsTarget = "space/textileThreadsTarget"
)

Variables

View Source
var (
	ErrConfigNotLoaded = errors.New("config file was not loaded correctly or it does not exist")
)

Functions

This section is empty.

Types

type Config

type Config interface {
	GetString(key string, defaultValue interface{}) string
	GetInt(key string, defaultValue interface{}) int
}

Config used to fetch config information

func New

func New(env env.SpaceEnv) Config

Jump to

Keyboard shortcuts

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