conf

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Vserion = "v0.5.6"

Vserion version of wallet

Variables

This section is empty.

Functions

func ChangePassword added in v0.5.1

func ChangePassword(pwd string) error

ChangePassword change password

func CheckPassword

func CheckPassword(in string) bool

CheckPassword check password, return true when password is right

func GetWallet

func GetWallet() trans.Wallet

GetWallet get wallet

func Load

func Load(password string) error

Load load wallet

func SaveConf added in v0.5.2

func SaveConf() error

SaveConf save conf to file

Types

type Config added in v0.5.2

type Config struct {
	APIServer     string   `json:"api_server,omitempty"`
	WalletFile    string   `json:"wallet_file,omitempty"`
	Langure       string   `json:"langure,omitempty"`
	LangureList   []string `json:"langure_list,omitempty"`
	CoinUnit      string   `json:"coin_unit,omitempty"`
	DefaultChain  string   `json:"default_chain,omitempty"`
	Chains        []string `json:"chains,omitempty"`
	DynamicUIFile string   `json:"dynamic_ui_file,omitempty"`
}

Config config

func Get

func Get() *Config

Get get conf

Jump to

Keyboard shortcuts

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