config

package
v0.4.31 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	OutputModeSimple = "simple"
	OutputModeJSON   = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Eth        accounts.EthConfig `yaml:"ethereum"`
	OutFormat  string             `required:"false" default:"" yaml:"output_format"`
	WorkerAddr string             `yaml:"worker_eth_addr"`
	NodeAddr   string             `yaml:"node_addr"`
	// contains filtered or unexported fields
}

Config describes configuration file for the `sonmcli` tool

func NewConfig

func NewConfig(p ...string) (*Config, error)

func (*Config) KeyStore added in v0.4.1

func (cc *Config) KeyStore() string

func (*Config) OutputFormat

func (cc *Config) OutputFormat() string

func (*Config) PassPhrase added in v0.4.1

func (cc *Config) PassPhrase() string

func (*Config) Save added in v0.4.1

func (cc *Config) Save() error

func (*Config) Validate added in v0.4.1

func (cc *Config) Validate() error

Jump to

Keyboard shortcuts

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