mirror of
				https://github.com/labstack/echo.git
				synced 2025-10-30 23:57:38 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package middleware
 | |
| 
 | |
| import "github.com/labstack/echo"
 | |
| 
 | |
| type (
 | |
| 	// Skipper defines a function to skip middleware. Returning true skips processing
 | |
| 	// the middleware.
 | |
| 	Skipper func(c echo.Context) bool
 | |
| )
 | |
| 
 | |
| // DefaultSkipper returns false which processes the middleware.
 | |
| func DefaultSkipper(echo.Context) bool {
 | |
| 	return false
 | |
| }
 |