handler

package
v0.0.0-...-e6ebd66 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

README

Handler Package

The Handler package provides common handlers across all services.

Handlers

This package includes the following handlers:

Deprecation Handler

DeprecationHandler manages requests made to deprecated API versions. When a request is made to a deprecated version of the API (v1), the handler returns a JSON error message instructing the client to use the updated version (v2).

Ping Handler

PingHandler responds to ping requests with "pong!". It is used primarily for checking the availability and responsiveness of the service. A successful "pong!" response indicates that the service is up and running.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeprecationHandler

func NewDeprecationHandler(service string) gin.HandlerFunc

NewDeprecationHandler handles requests made to deprecated API versions.

func PingHandler

func PingHandler(c *gin.Context)

PingHandler handles ping requests and checks the status of MongoDB, NATS, and Elasticsearch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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