Documentation ¶
Index ¶
- func Create(mEnv *config.Data) httprouter.Handle
- func CreateData(cl *mongo.Collection, m Menu) primitive.ObjectID
- func Delete(mEnv *config.Data) httprouter.Handle
- func DeleteData(cl *mongo.Collection, id primitive.ObjectID) int64
- func Edit(mEnv *config.Data) httprouter.Handle
- func Get(mEnv *config.Data) httprouter.Handle
- func Index(mEnv *config.Data) httprouter.Handle
- func ModifyData(cl *mongo.Collection, m []Menu) primitive.ObjectID
- type Menu
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateData ¶
func CreateData(cl *mongo.Collection, m Menu) primitive.ObjectID
CreateData creates a item and returns the create item
func DeleteData ¶
func DeleteData(cl *mongo.Collection, id primitive.ObjectID) int64
DeleteData deletes the item of given id
func ModifyData ¶
func ModifyData(cl *mongo.Collection, m []Menu) primitive.ObjectID
ModifyData replace the item given on pos 0 from slice by the item on pos 1
Types ¶
Click to show internal directories.
Click to hide internal directories.