mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-18 09:55:54 +08:00

* 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
21 lines
357 B
Go
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)
|
|
}
|