move rankings to dedicated package

This commit is contained in:
ionutboangiu
2025-03-06 19:39:13 +02:00
committed by Dan Christian Bogos
parent 47fb25b4ef
commit c762de5c28
25 changed files with 607 additions and 403 deletions

View File

@@ -64,11 +64,11 @@ type DataDB interface {
GetThresholdDrv(*context.Context, string, string) (*Threshold, error)
SetThresholdDrv(*context.Context, *Threshold) error
RemoveThresholdDrv(*context.Context, string, string) error
SetRankingProfileDrv(ctx *context.Context, rp *RankingProfile) (err error)
GetRankingProfileDrv(ctx *context.Context, tenant string, id string) (sq *RankingProfile, err error)
SetRankingProfileDrv(ctx *context.Context, rp *utils.RankingProfile) (err error)
GetRankingProfileDrv(ctx *context.Context, tenant string, id string) (sq *utils.RankingProfile, err error)
RemRankingProfileDrv(ctx *context.Context, tenant string, id string) (err error)
SetRankingDrv(ctx *context.Context, rn *Ranking) (err error)
GetRankingDrv(ctx *context.Context, tenant string, id string) (sq *Ranking, err error)
SetRankingDrv(ctx *context.Context, rn *utils.Ranking) (err error)
GetRankingDrv(ctx *context.Context, tenant string, id string) (sq *utils.Ranking, err error)
RemoveRankingDrv(ctx *context.Context, tenant string, id string) (err error)
SetTrendProfileDrv(ctx *context.Context, sq *utils.TrendProfile) (err error)
GetTrendProfileDrv(ctx *context.Context, tenant string, id string) (sq *utils.TrendProfile, err error)