mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-28 12:42:00 +08:00
27 lines
607 B
Go
27 lines
607 B
Go
package noopweb
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"github.com/SigNoz/signoz/pkg/factory"
|
|
"github.com/SigNoz/signoz/pkg/web"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
type provider struct{}
|
|
|
|
func NewFactory() factory.ProviderFactory[web.Web, web.Config] {
|
|
return factory.NewProviderFactory(factory.MustNewName("noop"), New)
|
|
}
|
|
|
|
func New(ctx context.Context, settings factory.ProviderSettings, config web.Config) (web.Web, error) {
|
|
return &provider{}, nil
|
|
}
|
|
|
|
func (provider *provider) AddToRouter(router *mux.Router) error {
|
|
return nil
|
|
}
|
|
|
|
func (provider *provider) ServeHTTP(w http.ResponseWriter, r *http.Request) {}
|