Added a new field to HTTPCaller to store results for each call

This commit is contained in:
pb 2025-03-12 09:45:17 +01:00
parent 92965c6af2
commit 659b494ee4

View File

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