lnd

package
v0.0.0-...-6060dae Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Trans

func Trans(d *[]CSV, v *ledger.ViewData)

Transpose the CSV export from faraday (lnd, bitcoin) into LedgerData, in a ledger.ViewData Container TODO: return a basic slice, reformat in main

func UnmarshalCSV

func UnmarshalCSV(f *os.File, d *[]CSV)

Unmarshal the LND CSV into a struct

Types

type CSV

type CSV struct {
	Timestamp    string `csv:"Timestamp"`
	OnChain      string `csv:"OnChain"`
	Type         string `csv:"Type"`
	Category     string `csv:"Category"`
	AmountMsat   string `csv:"Amount(Msat)"`
	AmountUSD    string `csv:"Amount(USD)"`
	TxID         string `csv:"TxID"`
	Reference    string `csv:"Reference"`
	BTCPrice     string `csv:"BTCPrice"`
	BTCTimestamp string `csv:"BTCTimestamp"`
	Note         string `csv:"Note"`
}

A data structure to match the CSV from LND

Jump to

Keyboard shortcuts

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