config

package
Version: v0.0.0-...-043d1ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: AGPL-3.0-or-later, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = &ConfigData{}

Functions

func Load

func Load() (err error)

func Save

func Save() (err error)

Types

type ConfigData

type ConfigData struct {
	RootPath      string `json:"root_path"`
	MongoUri      string `json:"mongo_uri"`
	ServerName    string `json:"server_name"`
	ServerPort    int    `json:"server_port"`
	ServerHost    string `json:"server_host"`
	SigKeyName    string `json:"sig_key_name"`
	WebNodeId     string `json:"web_node_id"`
	StorageNodeId string `json:"storage_node_id"`
	BuilderNodeId string `json:"builder_node_id"`
	// contains filtered or unexported fields
}

func (*ConfigData) Load

func (c *ConfigData) Load(path string) (err error)

func (*ConfigData) Save

func (c *ConfigData) Save() (err error)

Source Files

Jump to

Keyboard shortcuts

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