mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 21:12:02 +08:00
16 lines
303 B
Go
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
|
|
}
|