handlers

package
v0.0.0-...-2588e81 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusHandler

type PrometheusHandler struct {
	GinGauge prometheus.Gauge
}

func NewPrometheusHandler

func NewPrometheusHandler() *PrometheusHandler

func (*PrometheusHandler) HandleMetrics

func (p *PrometheusHandler) HandleMetrics(c *gin.Context)

func (*PrometheusHandler) RPSMiddleware

func (p *PrometheusHandler) RPSMiddleware(c *gin.Context)

type WeatherHandler

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

func NewWeatherHandler

func NewWeatherHandler(wc *client.WeatherClient) *WeatherHandler

func (*WeatherHandler) HandleForecast

func (h *WeatherHandler) HandleForecast(c *gin.Context)

Jump to

Keyboard shortcuts

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