api

package
v0.0.0-...-449b807 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type API

type API interface {
	Register(app *gin.Engine)
}

type APIRPC

type APIRPC interface {
	Register() *grpc.Server
}

type Handler

type Handler struct {
	Middleware         *middleware.Middleware
	PrometheusRegistry *prometheus.Registry
}

func (*Handler) GetNoRoute

func (h *Handler) GetNoRoute(c *gin.Context)

func (*Handler) HealthHandler

func (h *Handler) HealthHandler(c *gin.Context)

func (*Handler) MetricsHandler

func (h *Handler) MetricsHandler(c *gin.Context)

func (*Handler) Register

func (h *Handler) Register(app *gin.Engine)

func (*Handler) RegisterStaticFS

func (h *Handler) RegisterStaticFS(app *gin.Engine, path string)

type HandlerRPC

type HandlerRPC struct {
	PrometheusRegistry *prometheus.Registry
	MiddlewareRPC      *middleware_rpc.MiddlewareRPC
}

func (*HandlerRPC) MetricsHandler

func (h *HandlerRPC) MetricsHandler(w http.ResponseWriter, r *http.Request)

func (*HandlerRPC) Register

func (h *HandlerRPC) Register() *grpc.Server

Jump to

Keyboard shortcuts

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