add implementation for new ips module

This commit is contained in:
ionutboangiu
2025-05-29 11:41:34 +03:00
committed by Dan Christian Bogos
parent 1b4324157d
commit eed6b8a51a
45 changed files with 2935 additions and 36 deletions

View File

@@ -46,6 +46,12 @@ type DataDB interface {
GetResourceDrv(*context.Context, string, string) (*utils.Resource, error)
SetResourceDrv(*context.Context, *utils.Resource) error
RemoveResourceDrv(*context.Context, string, string) error
GetIPProfileDrv(*context.Context, string, string) (*utils.IPProfile, error)
SetIPProfileDrv(*context.Context, *utils.IPProfile) error
RemoveIPProfileDrv(*context.Context, string, string) error
GetIPDrv(*context.Context, string, string) (*utils.IP, error)
SetIPDrv(*context.Context, *utils.IP) error
RemoveIPDrv(*context.Context, string, string) error
GetLoadHistory(int, bool, string) ([]*utils.LoadInstance, error)
AddLoadHistory(*utils.LoadInstance, int, string) error
GetIndexesDrv(ctx *context.Context, idxItmType, tntCtx, idxKey, transactionID string) (indexes map[string]utils.StringSet, err error)