control-panel-dns/structs.go

29 lines
582 B
Go

// This creates a simple hello world window
package main
import (
"net"
)
// It's probably a terrible idea to call this 'me'
var me Host
type Host struct {
hostname string // mirrors
domainname string // kernel.org
fqdn string // mirrors.kernel.org
ip map[string]*IPtype
ifmap map[int]*net.Interface // the current network settings
// ifnew []net.Interface // used to look for changes
ipchange bool // set to true if things change
}
type IPtype struct {
// IP string
IPv4 bool
IPv6 bool
LinkLocal bool
Interface *net.Interface
IPNet *net.IPNet
}