Documentation ¶
Index ¶
- func Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func CreateProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func DeleteBook(r *http.Request) error
- func DeleteProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func OldDesign(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Show(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func Update(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func UpdateProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- type Book
- type Prod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Create - Insert page
func CreateProcess ¶
func CreateProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
CreateProcess - Insert
func DeleteProcess ¶
func DeleteProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
DeleteProcess will delete one record, and return to items page
func OldDesign ¶
func OldDesign(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
OldDesign is old HTML template used by PHP
func UpdateProcess ¶
func UpdateProcess(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
UpdateProcess - Update
Types ¶
type Book ¶
type Book struct { // add ID and tags if you need them // ID bson.ObjectId // `json:"id" bson:"_id"` Isbn string // `json:"isbn" bson:"isbn"` Title string // `json:"title" bson:"title"` Author string // `json:"author" bson:"author"` Price float32 // `json:"price" bson:"price"` }
Book Record fields
type Prod ¶
type Prod struct { // add ID and tags if you need them // ID bson.ObjectId // `json:"id" bson:"_id"` Pline string // `json:"isbn" bson:"isbn"` Bline string // `json:"title" bson:"title"` Category string // `json:"author" bson:"author"` Price float32 // `json:"price" bson:"price"` }
Prod Record fields
func SomeProducts ¶
SomeProducts records from produts3 collection
Click to show internal directories.
Click to hide internal directories.