db

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	GetLastReceipts(limit int) ([]*Receipt, error)
	InsertReceipt(receipt *Receipt) error
	Close() error
}

DB is a database interface.

type Receipt

type Receipt struct {
	Symbol    string
	TxType    string
	Quantity  float32
	Price     float32
	Profit    float32
	Timestamp int64
}

Receipt stores a receipt's data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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