signoz/pkg/web/web.go
Vibhu Pandey fdcdbf021a
refactor(web): move to provider pattern (#6838)
### Summary

move to provider pattern
2025-01-17 20:03:21 +05:30

16 lines
303 B
Go

package web
import (
"net/http"
"github.com/gorilla/mux"
)
// Web is the interface that wraps the methods of the web package.
type Web interface {
// AddToRouter adds the web routes to an existing router.
AddToRouter(router *mux.Router) error
// ServeHTTP serves the web routes.
http.Handler
}