Documentation ¶
Index ¶
- Constants
- Variables
- func InitLogging(debugHandle io.Writer, infoHandle io.Writer, warningHandle io.Writer, ...)
- func LinkLocalMulticastListener(ifi *net.Interface) (net.PacketConn, error)
- func ListenHttp(domain string, db Zone, port int)
- func StartServer(zone Zone, iface *net.Interface, dnsPort int, httpPort int, wait int) error
- func StartUpdater(apiPath string, zone Zone) error
- type DuplicateError
- type LookupError
- type MDNSClient
- type MDNSInteraction
- type MDNSServer
- type Record
- type ResponseA
- type Zone
- type ZoneDb
- func (zone *ZoneDb) AddRecord(ident string, name string, ip net.IP) error
- func (zone *ZoneDb) DeleteRecord(ident string, ip net.IP) error
- func (zone *ZoneDb) DeleteRecordsFor(ident string) error
- func (zone *ZoneDb) LookupLocal(name string) (net.IP, error)
- func (zone *ZoneDb) ReverseLookupLocal(ip net.IP) (string, error)
Constants ¶
View Source
const ( MaxDuration = time.Duration(math.MaxInt64) MailboxSize = 16 )
View Source
const ( CSendQuery = iota CShutdown = iota CMessageReceived = iota )
View Source
const ( LOCAL_DOMAIN = "weave.local." RDNS_DOMAIN = "in-addr.arpa." )
Variables ¶
Functions ¶
func InitLogging ¶
func LinkLocalMulticastListener ¶
func LinkLocalMulticastListener(ifi *net.Interface) (net.PacketConn, error)
func ListenHttp ¶
func StartServer ¶
func StartUpdater ¶
Types ¶
type DuplicateError ¶
type DuplicateError struct { }
func (DuplicateError) Error ¶
func (dup DuplicateError) Error() string
type LookupError ¶
type LookupError string
func (LookupError) Error ¶
func (ops LookupError) Error() string
type MDNSClient ¶
type MDNSClient struct {
// contains filtered or unexported fields
}
func NewMDNSClient ¶
func NewMDNSClient() (*MDNSClient, error)
func (*MDNSClient) ResponseCallback ¶
func (c *MDNSClient) ResponseCallback(r *dns.Msg)
Async - called from dns library multiplexer
type MDNSInteraction ¶
type MDNSInteraction struct {
// contains filtered or unexported fields
}
type MDNSServer ¶
type MDNSServer struct {
// contains filtered or unexported fields
}
func NewMDNSServer ¶
func NewMDNSServer(zone Zone) (*MDNSServer, error)
Click to show internal directories.
Click to hide internal directories.