Documentation ¶
Index ¶
- Variables
- type Config
- func (config Config) AccountFromArg(arg string) (*data.Account, *uint32, error)
- func (config Config) AmountFromArg(arg string) (*data.Amount, error)
- func (config Config) FormatAccountName(account data.Account) string
- func (config Config) FormatAmount(amount data.Amount) string
- func (config Config) GetAccountByNickname(nickname string) (account *data.Account, tag *uint32, ok bool)
- func (config Config) GetAccountKeypair(account data.Account) (util.Keypair, error)
- func (config Config) GetAccountNickname(account data.Account) (string, bool)
- func (config Config) GetAccountXXX() string
- func (config Config) GetDefaultAccount() (*data.Account, *uint32, bool)
- func (config Config) GetRippled() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FileNotFound = errors.New("No configuration file")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
func LooseLoad ¶
Wrapper around https://godoc.org/gopkg.in/go-ini/ini.v1#LooseLoad
func LooseLoadGlob ¶
Helper loads multiple config files
func (Config) AccountFromArg ¶
Helper to parse a command line argument into a fully-qualifed account.
func (Config) FormatAccountName ¶
Return account's nickname, if any. Otherwise return account's address. Format helper lives in config because this is where nicknames are known.
func (Config) GetAccountByNickname ¶
func (Config) GetAccountKeypair ¶
TODO support ECDSA and ed25519
func (Config) GetAccountNickname ¶
func (Config) GetAccountXXX ¶
func (Config) GetDefaultAccount ¶
func (Config) GetRippled ¶
Click to show internal directories.
Click to hide internal directories.