Documentation ¶
Index ¶
- Variables
- func GetID(r *http.Request) models.ID
- func GetModelAny(r *http.Request) any
- func GetModelWithID(r *http.Request) models.WithID
- func GetModelWithOrg(r *http.Request) models.WithOrg
- func GetModelWithUser(r *http.Request) models.WithUser
- func Middleware(st *app.State, kind models.Kind) func(http.Handler) http.Handler
- type IDType
- type ModelType
Constants ¶
This section is empty.
Variables ¶
View Source
var IDKey = IDType("modelID")
View Source
var ModelKey = ModelType("modelObject")
Functions ¶
func GetModelAny ¶
GetModelAny returns the model object as any. Panic indicates coding error.
func GetModelWithID ¶
GetWithID returns the model object as a models.WithID instance. Panic indicates coding error.
func GetModelWithOrg ¶
GetModelWithOrg returns the model object as a models.WithOrg instance. Panic indicates coding error.
func GetModelWithUser ¶
GetModelWithUser returns the model object as a models.WithUser instance. Panic indicates coding error.
Types ¶
Click to show internal directories.
Click to hide internal directories.