package structs // database model type PipelineProduct struct { Name string `gorm:"primaryKey"` // name is used as ID Votes int } type NewProduct struct { Name string Url string Variant string Characteristics string } type InWorkProduct struct { Name string Variant string Characteristics string } type FutureProduct struct { Name string Votes int Variant string Characteristics string } type PipelineProductsCache struct { NewProducts []NewProduct InWorkProducts []InWorkProduct FutureProducts []FutureProduct } type ProductState struct { Status string // like Warteschlange, In Arbeit State uint8 // like 1, 2, 3 } type VoteProductQuery struct { /* T = type */ T string // u = up, d = down } type VoteProductRequest struct { Name string }