Documentation ¶
Index ¶
- func HandleCreate[M any, U any](cx *gin.Context, r repoCreate[M, U], accessChecker ...AccessChecker[M])
- func HandleDelete[M any](cx *gin.Context, r repoDelete[M], accessChecker ...AccessChecker[M])
- func HandleList[M any](cx *gin.Context, r repo.Filterer[M], baseUrl *url.URL, q query.Builder)
- func HandleUpdate[M any, U any](cx *gin.Context, r repoUpdate[M, U], accessChecker ...AccessChecker[M])
- func HandleView[M any](cx *gin.Context, r repo.Identifier[M], accessChecker ...AccessChecker[M])
- type AccessChecker
- type CRUD
- type Creator
- type Deleter
- type Lister
- type Updater
- type Viewer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCreate ¶
func HandleCreate[M any, U any](cx *gin.Context, r repoCreate[M, U], accessChecker ...AccessChecker[M])
func HandleDelete ¶
func HandleDelete[M any](cx *gin.Context, r repoDelete[M], accessChecker ...AccessChecker[M])
func HandleList ¶
func HandleUpdate ¶
func HandleUpdate[M any, U any](cx *gin.Context, r repoUpdate[M, U], accessChecker ...AccessChecker[M])
func HandleView ¶
func HandleView[M any](cx *gin.Context, r repo.Identifier[M], accessChecker ...AccessChecker[M])
Types ¶
type AccessChecker ¶
Click to show internal directories.
Click to hide internal directories.