Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPHandlerService ¶
type HTTPHandlerService struct {
// contains filtered or unexported fields
}
func NewHTTPHandlerService ¶
func NewHTTPHandlerService( eventEmitter *infrastructure.EventEmitter, db *gorm.DB, rdb *redis.Client, s3Client *s3.S3, natsClient *nats.Conn, kw *kafka.Writer, ) *HTTPHandlerService
func (*HTTPHandlerService) HandleGetUserInformation ¶
func (svc *HTTPHandlerService) HandleGetUserInformation(c *gin.Context) (int, interface{}, error)
HandleGetUserInformation godoc @Summary get user info from jwt @Schemes @Description get user info from jwt @Tags User @Accept json @Produce json @Success 200 {object} api.RespondJson "user info" @Failure 401 {object} api.RespondJson "invalid jwt token, unauthorized" @Failure 500 {object} api.RespondJson "internal server error" @Router /me [get]
func (*HTTPHandlerService) InitEventHandlers ¶
func (svc *HTTPHandlerService) InitEventHandlers()
Click to show internal directories.
Click to hide internal directories.