api

package
v0.0.0-...-9f4bb82 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 14 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
	HandlerUser        *handler.HandlerUser
	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