Documentation ¶
Index ¶
- func Auth(opt server.JwtOption) gin.HandlerFunc
- func AuthServer(defaultOpt client.Http) gin.HandlerFunc
- func AuthenticatedHeader(c *gin.Context) bool
- func BindJSON(c *gin.Context, obj interface{}) error
- func CreateToken(opt server.JwtOption, claims jwt.MapClaims) string
- func DbConnect(c *gin.Context)
- func ErrorHandler(c *gin.Context)
- func GetAuthorizedHeader(r *http.Request) http.Header
- func GetToken(c *gin.Context)
- func ProcessAuthResponse(c *gin.Context, body io.Reader)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedHeader ¶
AuthenticatedHeader function
func CreateToken ¶
CreateToken function
func DbConnect ¶
DbConnect function Connect middleware clones the database session for each request and makes the `db` object available for each handler
func ErrorHandler ¶
ErrorHandler is a middleware to handle errors encountered during requests
func GetAuthorizedHeader ¶
GetAuthorizedHeader function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.