Files
signoz/pkg/http/middleware/middleware.go
Vikrant Gupta 2163e1ce41 chore(lint): enable godot and staticcheck (#10775)
* chore(lint): enable godot and staticcheck

* chore(lint): merge main and fix new lint issues in main
2026-03-31 09:11:49 +00:00

21 lines
455 B
Go

package middleware
import "net/http"
const (
pkgname string = "go.signoz.io/pkg/http/middleware"
)
// Wrapper is an interface implemented by all middlewares.
type Wrapper interface {
Wrap(http.Handler) http.Handler
}
// WrapperFunc is to Wrapper as http.HandlerFunc is to http.Handler.
type WrapperFunc func(http.Handler) http.Handler
// WrapperFunc implements Wrapper.
func (m WrapperFunc) Wrap(next http.Handler) http.Handler {
return m(next)
}