http

package
v0.0.0-...-4e312c3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToRouter

func AddToRouter(fiberApp fiber.Router, handler user.HttpHandler)

func SpanNameStrategy

func SpanNameStrategy(c *fiber.Ctx) string

Types

type TracesObject

type TracesObject struct {
}

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(userUsecase user.Usecase) *UserService

func (UserService) Login

func (u UserService) Login() fiber.Handler

Login godoc @Summary Login a user @Description Handles user login by processing the provided credentials. @Tags Auth @Accept json @Produce json @Param username body string true "Username" @Param password body string true "Password" @Success 200 {object} map[string]bool "Login successful" @Failure 500 {object} map[string]bool "Internal server error" @Router /login [post]

Jump to

Keyboard shortcuts

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