mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
24 lines
328 B
Go
24 lines
328 B
Go
package indexes
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type ResolverEntry struct {
|
|
IPv4Address *net.IP
|
|
IPv6Address *net.IP
|
|
Line uint32
|
|
}
|
|
|
|
func (e ResolverEntry) GetInfo() string {
|
|
if e.IPv4Address != nil {
|
|
return e.IPv4Address.String()
|
|
}
|
|
|
|
return e.IPv6Address.String()
|
|
}
|
|
|
|
type Resolver struct {
|
|
Entries map[string]*ResolverEntry
|
|
}
|