Added a new field to HTTPCaller to store results for each call
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user