hm

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package hm : http middleware functions, such as logging middleware, authentication middleware, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TracingRawRequestMiddleware

func TracingRawRequestMiddleware(log logger.Logger) gin.HandlerFunc

func TracingRequestMiddleware

func TracingRequestMiddleware[request, response any](log logger.Logger, _ request, _ response) http.Handler[request, response]

Types

type TracingRawRequestLog

type TracingRawRequestLog struct {
	Url        string `json:"url"`
	Method     string `json:"method"`
	Proto      string `json:"proto"`
	StatusCode int    `json:"status_code"`
	TimeCost   string `json:"time_cost"`
	ErrMsg     string `json:"error_message,omitempty"`
}

Jump to

Keyboard shortcuts

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