mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 04:32:03 +08:00

### Summary feat(.): initialize all factories #### Related Issues / PR's Removed all redundant commits of https://github.com/SigNoz/signoz/pull/6843 Closes https://github.com/SigNoz/signoz/pull/6782
27 lines
597 B
Go
27 lines
597 B
Go
package noopweb
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"github.com/gorilla/mux"
|
|
"go.signoz.io/signoz/pkg/factory"
|
|
"go.signoz.io/signoz/pkg/web"
|
|
)
|
|
|
|
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) {}
|