Documentation ¶
Index ¶
Constants ¶
View Source
const CurrentUserKey = "currentUser"
CurrentUserKey is the key in context corresponding to cur user
View Source
const GinContextKey = "GinContextKey"
GinContextKey is the key in context corresponding to gin context
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUserFromCTX ¶
GetCurrentUserFromCTX will be used in Resolvers to extract cur user
func GinContextFromContext ¶
GinContextFromContext returns the Gin context which is stored in native Context provided by stdlib, use it in congunction with GinContextToContext middleware which stores the Gin Context to native Context
func GinContextToContext ¶
func GinContextToContext() gin.HandlerFunc
GinContextToContext adds Gin Context to the native Context provided by golang stdlib, which is then used by gqlgen resolvers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.