config

package
v0.0.0-...-4f583ac Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 4 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 {
	Ticker   string
	ChainID  int
	RPCUser  string
	RPCPass  string
	RPCURL   string
	LogDir   string
	LogLevel string
}

Config is the configuration for this currency transaction proxy service.

func Load

func Load(b []byte) (*Config, error)

Load parses and validates the provided buffer b as a config file body and returns the Config.

func LoadFile

func LoadFile(f string) (*Config, error)

LoadFile loads, parses and validates the provided file and returns the Config.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate returns nil if the config is valid and otherwise an error is returned.

Jump to

Keyboard shortcuts

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