mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
	
	
		
			13 lines
		
	
	
		
			271 B
		
	
	
	
		
			Go
		
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			271 B
		
	
	
	
		
			Go
		
	
	
	
|  | package models | ||
|  | 
 | ||
|  | import ( | ||
|  | 	"net/http" | ||
|  | ) | ||
|  | 
 | ||
|  | type PluginRequestValidator interface { | ||
|  | 	// Validate performs a request validation based
 | ||
|  | 	// on the data source URL and some of the request
 | ||
|  | 	// attributes (headers, cookies, etc).
 | ||
|  | 	Validate(dsURL string, req *http.Request) error | ||
|  | } |