config

package
v0.0.0-...-a5eb945 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnSupportedPriorityCode = errors.New("Unsupported Priority Code")

Functions

This section is empty.

Types

type Config

type Config struct {
	Version             string   `json:"version"`
	SupportedCurrencies []string `json:"supportedCurrencies"`
	AuthorizedAddresses []string `json:"authorizedAddresses"`
	Watchdog            string   `json:"watchdogURL"`
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(path string) (Config, error)

func (*Config) GetAuthorizedAddresses

func (config *Config) GetAuthorizedAddresses() []common.Address

func (*Config) GetSupportedCurrencies

func (config *Config) GetSupportedCurrencies() []string

func (*Config) GetVersion

func (config *Config) GetVersion() string

func (*Config) StoreLocation

func (config *Config) StoreLocation() (string, error)

func (*Config) Update

func (config *Config) Update() error

func (*Config) WatchdogURL

func (config *Config) WatchdogURL() string

Jump to

Keyboard shortcuts

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