Documentation
¶
Index ¶
Constants ¶
View Source
const (
COLLECTION = "products"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Product ¶
type Product struct {
ID bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"`
ProductID int `bson:"product_id" json:"product_id"`
Link string `bson:"link" json:"link"`
Category string `bson:"category" json:"category"`
Brand string `bson:"brand" json:"brand"`
Name string `bson:"name" json:"name"`
Fullname string `bson:"full_name" json:"full_name"`
Specialname string `bson:"special_name" json:"special_name"`
Vendorname string `bson:"vendor_name" json:"vendor_name"`
Description string `bson:"description" json:"description"`
}
Product Represents a product, we uses bson keyword to tell the mgo driver how to name the properties in mongodb document
Click to show internal directories.
Click to hide internal directories.