Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounting ¶
type Accounting struct {
// contains filtered or unexported fields
}
Accounting contains the information needed for providing accounting information about a Sia node.
func NewCustomAccounting ¶
func NewCustomAccounting(fm modules.FeeManager, h modules.Host, m modules.Miner, r modules.Renter, w modules.Wallet, persistDir string, deps modules.Dependencies) (*Accounting, error)
NewCustomAccounting initializes the accounting module with custom dependencies
func (*Accounting) Accounting ¶
func (a *Accounting) Accounting() (modules.AccountingInfo, error)
Accounting returns the current accounting information
func (*Accounting) Close ¶
func (a *Accounting) Close() error
Close closes the accounting module
NOTE: It will not call close on any of the modules it is tracking. Those modules are responsible for closing themselves independently.
Click to show internal directories.
Click to hide internal directories.