util

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(next http.Handler) http.Handler

func LoggerMiddleware

func LoggerMiddleware(next http.Handler) http.Handler

Types

type ResponseWriterWithStatusCodeLog

type ResponseWriterWithStatusCodeLog struct {
	Parent http.ResponseWriter
	Status int
}

func (*ResponseWriterWithStatusCodeLog) Header

func (*ResponseWriterWithStatusCodeLog) Hijack

func (*ResponseWriterWithStatusCodeLog) Write

func (this *ResponseWriterWithStatusCodeLog) Write(payload []byte) (int, error)

func (*ResponseWriterWithStatusCodeLog) WriteHeader

func (this *ResponseWriterWithStatusCodeLog) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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