mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 21:21:55 +08:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
		
			425 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
		
			425 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package serverconfigs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "net/http"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// HTTPAuthMethodInterface HTTP认证接口定义
							 | 
						||
| 
								 | 
							
								type HTTPAuthMethodInterface interface {
							 | 
						||
| 
								 | 
							
									// Init 初始化
							 | 
						||
| 
								 | 
							
									Init(params map[string]interface{}) error
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									// Filter 过滤
							 | 
						||
| 
								 | 
							
									Filter(req *http.Request, subReqFunc func(subReq *http.Request) (status int, err error), formatter func(string) string) (bool, error)
							 | 
						||
| 
								 | 
							
								}
							 |