mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-19 17:10:24 +08:00
更好地支持IPv6
This commit is contained in:
18
pkg/iplibrary/reader_interface.go
Normal file
18
pkg/iplibrary/reader_interface.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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()
|
||||
}
|
||||
Reference in New Issue
Block a user