env

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Schema  string
	Role    string
	WorkDir string
	UserID  string
	Version string
	Dapp    *dapp
	DB      *db
	Tor     *tor
}

Config has a store environment variables.

func NewConfig

func NewConfig() *Config

NewConfig creates a default Configs configuration.

func (*Config) Read

func (c *Config) Read(path string) error

Read reads the configs from json file.

func (*Config) Write

func (c *Config) Write(path string) error

Write saves the configs to json file.

Jump to

Keyboard shortcuts

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