Added RateProfile interface in api_interface

This commit is contained in:
porosnicuadrian
2020-12-11 12:48:37 +02:00
committed by Dan Christian Bogos
parent d0ce6b389a
commit f0975a0b1a
2 changed files with 10 additions and 0 deletions

View File

@@ -182,6 +182,11 @@ type CoreSv1Interface interface {
type RateSv1Interface interface {
Ping(ign *utils.CGREventWithOpts, reply *string) error
CostForEvent(args *utils.ArgsCostForEvent, rpCost *engine.RateProfileCost) error
}
type RateProfileSv1Interface interface {
Ping(ign *utils.CGREventWithOpts, reply *string) error
}
type ReplicatorSv1Interface interface {

View File

@@ -64,6 +64,11 @@ func TestResponderInterface(t *testing.T) {
_ = ResponderInterface(&engine.Responder{})
}
func TestRateProfileInterface(t *testing.T) {
_ = RateProfileSv1Interface(NewDispatcherRateSv1(nil))
_ = RateProfileSv1Interface(NewRateSv1(nil))
}
func TestCacheSv1Interface(t *testing.T) {
_ = CacheSv1Interface(NewDispatcherCacheSv1(nil))
_ = CacheSv1Interface(NewCacheSv1(nil))