mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			340 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			340 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package iplibrary
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "net"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type ReaderVersion = int
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const (
							 | 
						||
| 
								 | 
							
									ReaderVersionV1 ReaderVersion = 0
							 | 
						||
| 
								 | 
							
									ReaderVersionV2 ReaderVersion = 2
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type ReaderInterface interface {
							 | 
						||
| 
								 | 
							
									Meta() *Meta
							 | 
						||
| 
								 | 
							
									Lookup(ip net.IP) *QueryResult
							 | 
						||
| 
								 | 
							
									Destroy()
							 | 
						||
| 
								 | 
							
								}
							 |