Documentation ¶
Index ¶
Constants ¶
View Source
const ( ClientKey ctxKey = "client" PatientKey ctxKey = "patient" UserKey ctxKey = "user" )
enumerates all context keys
Variables ¶
This section is empty.
Functions ¶
func AuthCtx ¶
AuthCtx middleware is used to load a User object from the authentication headers passed through as the request. In case the User could not be found, we stop here and return a 500.
func PatientCtx ¶
PatientCtx middleware is used to load a RoomAssignment object from the URL parameters passed through as the request. In case the RoomAssignment could not be found, we stop here and return a 404.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.