更好地支持IPv6

This commit is contained in:
GoEdgeLab
2024-04-06 09:12:17 +08:00
parent ba4213d0db
commit 5893fd7b3a
22 changed files with 1237 additions and 137 deletions

View 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()
}