Added panic api for testing for coresv1

This commit is contained in:
andronache98
2021-12-20 17:02:27 +02:00
committed by Dan Christian Bogos
parent 11feb738fc
commit 31a916eabb

View File

@@ -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)
}