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 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
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 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
Click to show internal directories.
Click to hide internal directories.