mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Added panic api for testing for coresv1
This commit is contained in:
committed by
Dan Christian Bogos
parent
11feb738fc
commit
31a916eabb
@@ -67,3 +67,13 @@ func (cS *CoreSv1) StartMemoryProfiling(ctx *context.Context, args *utils.Memory
|
||||
func (cS *CoreSv1) StopMemoryProfiling(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *string) error {
|
||||
return cS.cS.V1StopMemoryProfiling(ctx, args, reply)
|
||||
}
|
||||
|
||||
type PanicMessageArgs struct {
|
||||
Tenant string
|
||||
APIOpts map[string]interface{}
|
||||
Message string
|
||||
}
|
||||
|
||||
func (cS *CoreSv1) Panic(args *PanicMessageArgs, _ *string) error {
|
||||
panic(args.Message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user