network

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type BitcoinNetwork

type BitcoinNetwork struct {
	Network  string `json:"network"`
	User     string `json:"username"`
	Password string `json:"password"`
	URL      string `json:"url"`
}

type Config

type Config struct {
	Network  string          `json:"network"`
	Ethereum EthereumNetwork `json:"ethereum"`
	Bitcoin  BitcoinNetwork  `json:"bitcoin"`
	// contains filtered or unexported fields
}

func LoadNetwork

func LoadNetwork(path string) (Config, error)

func (*Config) GetBitcoinNetwork

func (network *Config) GetBitcoinNetwork() BitcoinNetwork

func (*Config) GetEthereumNetwork

func (network *Config) GetEthereumNetwork() EthereumNetwork

func (*Config) SetBitcoinNetwork

func (network *Config) SetBitcoinNetwork(bitcoinNetwork BitcoinNetwork)

func (*Config) SetEthereumNetwork

func (config *Config) SetEthereumNetwork(ethereumConfig EthereumNetwork)

func (*Config) Update

func (network *Config) Update() error

type EthereumNetwork

type EthereumNetwork struct {
	Network            string `json:"network"`
	URL                string `json:"url"`
	RenExAtomicSwapper string `json:"renExAtomicSwapper"`
	RenExAtomicInfo    string `json:"renExAtomicInfo"`
	RenExSettlement    string `json:"renExSettlement"`
	Orderbook          string `json:"orderbook"`
}

EthereumNetwork are the parameters required to create an ethereum client

Jump to

Keyboard shortcuts

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