core

package
v0.0.0-...-685ea2a Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Wallets map[string]*Wallet
}

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parses the Configuration file and return pointer of Config struct

type Wallet

type Wallet struct {
	Enable   bool   `json:"enable"`
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
}

func (*Wallet) AddrPort

func (w *Wallet) AddrPort() string

func (*Wallet) GetBalance

func (w *Wallet) GetBalance() (float64, error)

GetBalance retreive the total balance of the wallet

func (*Wallet) GetInfo

func (w *Wallet) GetInfo() (*btcjson.InfoResult, error)

func (*Wallet) ListAccounts

func (w *Wallet) ListAccounts() (map[string]float64, error)

func (*Wallet) ListTransactions

func (w *Wallet) ListTransactions(args []interface{}) ([]btcjson.ListTransactionsResult, error)

ListTransactions return count transactions from account begining with from transaction Args can be acount string count int from int

func (*Wallet) Unmarshal

func (w *Wallet) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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