router

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_AUTH   = "Authorization"
	JSON_ENCODING = "application/json; charset=utf-8"
)

Variables

This section is empty.

Functions

func CheckTraceTokenMiddleware

func CheckTraceTokenMiddleware(next http.Handler) http.Handler

CheckTraceTokenMiddleware Checks for x-trace-token, and if it doesn't exist creates one

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

LoggingMiddleware Logs details related to a request

func SetDefaultHeadersMiddleware

func SetDefaultHeadersMiddleware(next http.Handler) http.Handler

SetDefaultHeadersMiddleware Sets default headers

Types

This section is empty.

Jump to

Keyboard shortcuts

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