config

package
v0.0.0-...-d990fe8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT 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 {
	Network     *Network
	RpcHost     string
	RpcUser     string
	RpcPassword string
	Port        uint16
	Cors        bool
	Donate      bool
	// contains filtered or unexported fields
}

func InitConfig

func InitConfig(rpcChanged chan bool) (*Config, error)

func (*Config) CheckValid

func (c *Config) CheckValid() error

func (*Config) DefaultConfig

func (c *Config) DefaultConfig() string

func (*Config) Initialize

func (c *Config) Initialize() error

func (*Config) Read

func (c *Config) Read() error

func (*Config) Save

func (c *Config) Save() error

func (*Config) SetRpcCredentials

func (c *Config) SetRpcCredentials(host, user, password string) error

func (*Config) WriteDefaultsIfNotExist

func (c *Config) WriteDefaultsIfNotExist() error

type Network

type Network struct {
	VtcAddressPrefix     string
	AssetAddressPrefix   string
	StealthAddressPrefix string
	StartHash            *chainhash.Hash
	StartHeight          int
	Name                 string
}

func GetNetwork

func GetNetwork(name string) *Network

Jump to

Keyboard shortcuts

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