conf

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Interface InfConf    `json="interface"`
	Mining    MiningConf `json="mining"`
	Network   NetConf    `json="network"`
	Security  SecConf    `json="security"`
}
var VCF Conf = Conf{}

func (*Conf) ConfData

func (cf *Conf) ConfData()

func (*Conf) SaveInterfaceConf

func (cf *Conf) SaveInterfaceConf(lang string)

type InfConf

type InfConf struct {
	Lang  string `json:"lang"`
	Deno  string `json:"deno"`
	Fiat  string `json:"fiat"`
	Theme string `json:"theme"`
	CCSS  string `json:"ccss"`
	Start string `json:"start"`
	Tray  bool   `json:"tray"`
}

type MiningConf

type MiningConf struct {
	Algo  string `json:"algo"`
	CPU   string `json:"cpu"`
	Cores uint   `json:"cores"`
}

type NetConf

type NetConf struct {
	TLS     bool   `json:"tls"`
	Network string `json:"network"`
	RPC     string `json:"rpc"`
	SRPC    string `json:"srpc"`
	TLSpub  string `json:"tlspub"`
	TLSpri  string `json:"tlspri"`
	Proxy   string `json:"rpc"`
}

type SecConf

type SecConf struct {
	Network string `json:"network"`
}

Jump to

Keyboard shortcuts

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