config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadJSONFile

func LoadJSONFile(path string, obj interface{}) error

LoadJSONFile load a json file to obj

Types

type ConfigData

type ConfigData struct {
	ChainID  string           `json:"chainId"`
	StartNum uint32           `json:"startNum"`
	URL      string           `json:"url"`
	Keys     []accountKeyData `json:"keys"`
	PriKeys  []string         `json:"pri"`
}

ConfigData JSON struct define to config

func LoadCfgFromFile

func LoadCfgFromFile(path string) (*ConfigData, error)

LoadCfgFromFile load cfg from file

Jump to

Keyboard shortcuts

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