endpoints

package
v0.0.0-...-835025b Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRequest

func HandleRequest[req common.AllRequests, resp common.AllResponses](c *gin.Context, makeRequestFn func(*gin.Context) (req, error), serviceCallFn func(*gin.Context, req) (resp, error))

func NewHandler

func NewHandler(config *common.Config, db *gorm.DB, auth *common.Auth) *handler

Types

type Handler

type Handler interface {
	HealthCheck(c *gin.Context)
	Signup(c *gin.Context)
	Login(c *gin.Context)
	CreateUser(c *gin.Context)
	GetUser(c *gin.Context)
	UpdateUser(c *gin.Context)
	DeleteUser(c *gin.Context)
	SearchUsers(c *gin.Context)
	ChangePassword(c *gin.Context)
	CreateUserPost(c *gin.Context)
}

Jump to

Keyboard shortcuts

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