api

package
v0.0.0-...-c9cb955 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler() gin.HandlerFunc

ErrorHandler handles any errors that occur during request processing

func HealthCheckHandler

func HealthCheckHandler() gin.HandlerFunc

HealthCheckHandler returns a simple health check response

func MatchDuplicates

func MatchDuplicates(pool *pgxpool.Pool) gin.HandlerFunc

MatchDuplicates handles duplicate match requests

func MatchHandler

func MatchHandler(pool *pgxpool.Pool) gin.HandlerFunc

MatchHandler handles both single and batch match requests

func RequestLogger

func RequestLogger() gin.HandlerFunc

RequestLogger logs details about each HTTP request

func RequestValidator

func RequestValidator() gin.HandlerFunc

RequestValidator validates incoming JSON requests

func SetupRoutes

func SetupRoutes(router *gin.Engine, pool *pgxpool.Pool)

SetupRoutes sets up the HTTP routes for the API

Types

This section is empty.

Jump to

Keyboard shortcuts

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