Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalogue ¶
type Catalogue struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Products []bson.ObjectId `json:"author" bson:"author,omitempty"` Name string `json:"name" bson:"name,omitempty"` Details string `json:"details" bson:"details,omitempty"` Description string `json:"description" bson:"description,omitempty"` Type string `json:"type" bson:"type,omitempty"` Tags []string `json:"tags" bson:"tags,omitempty"` Date time.Time `json:"timestamp" bson:"timestamp,omitempty"` }
Catalogue ...
func NewCatalogue ¶
NewCatalogue creates a new Catalogue!
type Image ¶
type Image struct { Name string `json:"name" bson:"name,omitempty"` Type string `json:"type" bson:"type,omitempty"` Size int64 `json:"size" bson:"size,omitempty"` Width int `json:"width" bson:"width,omitempty"` Height int `json:"height" bson:"height,omitempty"` }
Image ...
type Product ¶
type Product struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` Name string `json:"name" bson:"name,omitempty"` Details string `json:"details" bson:"details,omitempty"` Description string `json:"description" bson:"description,omitempty"` Images []Image `json:"productImage" bson:"product_image,omitempty"` Type string `json:"type" bson:"type,omitempty"` Price float64 `json:"price" bson:"price,omitempty"` Discount float32 `json:"discount" bson:"discount,omitempty"` Tags []string `json:"tags" bson:"tags,omitempty"` Date time.Time `json:"timestamp" bson:"timestamp,omitempty"` }
Product ...
Click to show internal directories.
Click to hide internal directories.