Documentation ¶
Overview ¶
Package middlewares provide a middleware used in handlers for RESTful HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthAdmin ¶
func AuthAdmin(logger *otelzap.Logger, tracer trace.Tracer, s tokenservice.Interface) gin.HandlerFunc
AuthAdmin middleware check if the admin token is valid
func AuthStudent ¶
func AuthStudent(logger *otelzap.Logger, tracer trace.Tracer, s tokenservice.Interface) gin.HandlerFunc
AuthStudent middleware check if the student token is valid
Types ¶
Click to show internal directories.
Click to hide internal directories.