Documentation ¶
Index ¶
- Variables
- type CRUD
- func (crud *CRUD[T]) Create(c *gin.Context)
- func (crud *CRUD[T]) CreateHTML(c *gin.Context)
- func (crud *CRUD[T]) Delete(c *gin.Context)
- func (crud *CRUD[T]) Get(c *gin.Context)
- func (crud *CRUD[T]) GetAll(c *gin.Context)
- func (crud *CRUD[T]) GetAllHTML(c *gin.Context)
- func (crud *CRUD[T]) GetMulti(c *gin.Context)
- func (crud *CRUD[T]) GetOneHTML(c *gin.Context)
- func (crud *CRUD[T]) Update(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidInput = errors.New("Invalid Input")
Functions ¶
This section is empty.
Types ¶
type CRUD ¶
T is the full GET model T2 is for the CREATE fields T3 is for the UPDATE fields
func (*CRUD[T]) Create ¶
Create creates a new datastore model, and then immediately GETs the model ensuring the most recent data is returned.
func (*CRUD[T]) CreateHTML ¶
func (*CRUD[T]) GetAllHTML ¶
func (*CRUD[T]) GetOneHTML ¶
Click to show internal directories.
Click to hide internal directories.