Documentation
¶
Index ¶
- func CRUD[T any](server *gin.Engine, db *gorm.DB, middleware ...gin.HandlerFunc)
- func Delete[T any](server *gin.Engine, db *gorm.DB, middleware ...gin.HandlerFunc)
- func List[T any](server *gin.Engine, db *gorm.DB, middleware ...gin.HandlerFunc)
- func Log(method, path, title string)
- func Query[T any](server *gin.Engine, db *gorm.DB, middleware ...gin.HandlerFunc)
- func Save[T any](server *gin.Engine, db *gorm.DB, middleware ...gin.HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete registers DELETE and POST routes to remove a record of type T by ID or JSON body.
func Log ¶
func Log(method, path, title string)
Log prints a colorized API registration summary to stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.