models

package
v0.0.0-...-ce4a52b Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrice

func ParsePrice(price string) (float64, string, error)

Types

type CompatibilityInfo

type CompatibilityInfo struct {
	Message string
	Level   string
}

type ListPart

type ListPart struct {
	Type   string
	Name   string
	Image  string
	URL    string
	Vendor Vendor
}

type Part

type Part struct {
	Type    string
	Name    string
	Images  []string
	URL     string
	Vendors []Vendor
	Specs   []PartSpec
	Rating  RatingStats
}

type PartList

type PartList struct {
	URL           string
	Parts         []ListPart
	Price         Price
	Wattage       string
	Compatibility []CompatibilityInfo
}

type PartSpec

type PartSpec struct {
	Name   string
	Values []string
}

type Price

type Price struct {
	Base        float64
	Shipping    float64
	Tax         float64
	Discounts   float64
	Total       float64
	Currency    string
	TotalString string
}

type RatingStats

type RatingStats struct {
	Stars   uint
	Count   uint
	Average float64
}

type SearchPart

type SearchPart struct {
	Name   string
	Image  string
	URL    string
	Vendor Vendor
}

type Vendor

type Vendor struct {
	Name    string
	Image   string
	InStock bool
	Price   Price
	URL     string
}

Jump to

Keyboard shortcuts

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