price

package
v0.0.0-...-b0e2d2c Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder struct {
	DB         *sql.DB
	Repository *price.Repository
}

func (*Finder) FindPriceHistoryBetween

func (s *Finder) FindPriceHistoryBetween(productId int64, from time.Time, to time.Time, tx *sql.Tx) ([]Price, error)

type Price

type Price struct {
	DateTime time.Time `json:"date_time,omitempty"`
	Value    int       `json:"price,omitempty"`
	Currency string    `json:"currency,omitempty"`
}

Jump to

Keyboard shortcuts

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