price

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = "price"

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(dbconn *sqlite3.SQLite) error

Types

type Price

type Price struct {
	Date        time.Time
	AcquireDate time.Time
	Station     string
	Type        string
	Price       float64
	Currency    string
	Source      string
}

func LoadList

func LoadList(station, gastype string, fromdate, todate time.Time, db *sql.DB) ([]Price, error)

func (*Price) Save

func (pr *Price) Save(tx *sql.Tx) error

Jump to

Keyboard shortcuts

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