initial commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type StorageProduct struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Price string `json:"price"`
|
||||
Capacity string `json:"capacity"`
|
||||
Interface string `json:"interface"`
|
||||
FormFactor string `json:"form_factor"`
|
||||
Brand string `json:"brand"`
|
||||
PartNumber string `json:"part_number"`
|
||||
StockStatus string `json:"stock_status"`
|
||||
URL string `json:"url"`
|
||||
ScrapedAt time.Time `json:"scraped_at"`
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
Name string
|
||||
URL string
|
||||
Description string
|
||||
}
|
||||
|
||||
var StorageCategories = []Category{
|
||||
{
|
||||
Name: "3.5\" SATA HDDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/large-form-factor-sata-drives",
|
||||
Description: "Large Form Factor SATA Hard Drives",
|
||||
},
|
||||
{
|
||||
Name: "3.5\" SAS HDDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/large-form-factor-sas-drives",
|
||||
Description: "Large Form Factor SAS Hard Drives",
|
||||
},
|
||||
{
|
||||
Name: "2.5\" SATA HDDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/small-form-factor-sata-drives",
|
||||
Description: "Small Form Factor SATA Hard Drives",
|
||||
},
|
||||
{
|
||||
Name: "2.5\" SAS HDDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/small-form-factor-sas-drives",
|
||||
Description: "Small Form Factor SAS Hard Drives",
|
||||
},
|
||||
{
|
||||
Name: "SATA SSDs (2.5\")",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/sata-ssds",
|
||||
Description: "SATA Solid State Drives",
|
||||
},
|
||||
{
|
||||
Name: "SAS SSDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/sas-ssd",
|
||||
Description: "SAS Solid State Drives",
|
||||
},
|
||||
{
|
||||
Name: "NVMe SSDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/enterprise-hdds-sdds-storage/enterprise-nvme-drives",
|
||||
Description: "NVMe Solid State Drives",
|
||||
},
|
||||
{
|
||||
Name: "M.2 / Other SSDs",
|
||||
URL: "https://www.bargainhardware.co.uk/components/hard-drives-and-solid-state-drives/nvme-ssds",
|
||||
Description: "M.2 and Other SSD Form Factors",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user