pellets

package
v0.0.0-...-1646554 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Loose       = "P101"
	Sacked      = "P104"
	UnitKG      = "kg"
	UnitPallete = "Pal."
)

Variables

View Source
var URL = "https://1heiz-pellets.de/x_preis.php"

Functions

This section is empty.

Types

type PelletPrice

type PelletPrice struct {
	Error                        string `json:"error"`
	BestPreis                    int    `json:"bestPreis"`
	Bundesland                   string
	Fahrzeit                     string
	Lieferzeit                   string
	Gebiet                       string
	Lager                        string
	Lager_id                     string
	NettoEinzelpreisSK           float64 `json:"nettoEinzelpreisSK"`
	NettoEinzelpreis             float64
	NettoEinzelpreisCal          float64
	NettoEinzelpreisMindestmenge float64
}

func FetchPriceForLoosePellets

func FetchPriceForLoosePellets(amountInKg int) PelletPrice

func FetchPriceForSackedPellets

func FetchPriceForSackedPellets(amountInPalettes int) PelletPrice

Jump to

Keyboard shortcuts

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