http_handlers

package
v0.0.0-...-ac35e32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 14 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL