signoz/pkg/modules/apdex/apdex.go
Vibhu Pandey da084b4686
chore(savedview|apdex|dashboard): create modules and handlers (#7960)
* chore(savedview): refactor into module and handler

* chore(rule): move telemetry inside telemetry

* chore(apdex): refactor apdex and delete dao

* chore(dashboard): create a dashboard module

* chore(ee): get rid of the init nonesense

* chore(dashboard): fix err and apierror confusion

* chore: address comments
2025-05-17 00:15:00 +05:30

21 lines
357 B
Go

package apdex
import (
"context"
"net/http"
"github.com/SigNoz/signoz/pkg/types"
)
type Module interface {
Get(context.Context, string, []string) ([]*types.ApdexSettings, error)
Set(context.Context, string, *types.ApdexSettings) error
}
type Handler interface {
Get(http.ResponseWriter, *http.Request)
Set(http.ResponseWriter, *http.Request)
}