ledger

package
v0.0.0-...-9e0b26f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

type Ledger struct {
	ID       int64
	Currency string
	// placeholder
	MTS int64
	// placeholder
	Amount  float64
	Balance float64
	// placeholder
	Description string
}

func FromRaw

func FromRaw(raw []interface{}) (o *Ledger, err error)

FromRaw takes the raw list of values as returned from the websocket service and tries to convert it into an Ledger.

type Snapshot

type Snapshot struct {
	Snapshot []*Ledger
}

func SnapshotFromRaw

func SnapshotFromRaw(raw []interface{}, t transformerFn) (s *Snapshot, err error)

SnapshotFromRaw takes a raw list of values as returned from the websocket service and tries to convert it into an Snapshot.

Jump to

Keyboard shortcuts

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