From 659b494ee4d4467c6492a415f6692bb27eac7219 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 12 Mar 2025 09:45:17 +0100 Subject: [PATCH] Added a new field to HTTPCaller to store results for each call --- tools/remote_caller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/remote_caller.go b/tools/remote_caller.go index 3a65ff1..62bbfd7 100644 --- a/tools/remote_caller.go +++ b/tools/remote_caller.go @@ -49,8 +49,9 @@ func ToMethod(str string) METHOD { var HTTPCallerInstance = &HTTPCaller{} // Singleton instance of the HTTPCaller type HTTPCaller struct { - URLS map[DataType]map[METHOD]string // Map of the different methods and their urls - Disabled bool // Disabled flag + URLS map[DataType]map[METHOD]string // Map of the different methods and their urls + Disabled bool // Disabled flag + Results map[DataType]map[METHOD]map[string]interface{} // Used to store information regarding the last execution of a given method on a given data type } // NewHTTPCaller creates a new instance of the HTTP Caller