mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 05:09:54 +05:00
Added RateProfile interface in api_interface
This commit is contained in:
committed by
Dan Christian Bogos
parent
d0ce6b389a
commit
f0975a0b1a
@@ -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 {
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user