mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-21 05:09:52 -06:00
feat(ingestion): use consistent naming for handler instead of API
This commit is contained in:
@@ -4,10 +4,10 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Handler interface {
|
||||
Get(http.ResponseWriter, *http.Request)
|
||||
}
|
||||
|
||||
type Ingestion interface {
|
||||
GetConfig() Config
|
||||
}
|
||||
|
||||
type Handler interface {
|
||||
Get(http.ResponseWriter, *http.Request)
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ type signozapi struct {
|
||||
ingestion ingestion.Ingestion
|
||||
}
|
||||
|
||||
func NewAPI(ingestion ingestion.Ingestion) ingestion.Handler {
|
||||
func NewHandler(ingestion ingestion.Ingestion) ingestion.Handler {
|
||||
return &signozapi{ingestion: ingestion}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,6 @@ func NewHandlers(modules Modules, providerSettings factory.ProviderSettings, que
|
||||
Services: implservices.NewHandler(modules.Services),
|
||||
MetricsExplorer: implmetricsexplorer.NewHandler(modules.MetricsExplorer),
|
||||
SpanPercentile: implspanpercentile.NewHandler(modules.SpanPercentile),
|
||||
Ingestion: signozingestion.NewAPI(ingestion),
|
||||
Ingestion: signozingestion.NewHandler(ingestion),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ func NewAPIServerProviderFactories(orgGetter organization.Getter, authz authz.Au
|
||||
implsession.NewHandler(modules.Session),
|
||||
implauthdomain.NewHandler(modules.AuthDomain),
|
||||
implpreference.NewHandler(modules.Preference),
|
||||
signozingestion.NewAPI(ingestion),
|
||||
signozingestion.NewHandler(ingestion),
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user