dnshaiku

package
v0.0.0-...-d5a3342 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserIPAddressHTTP

func GetUserIPAddressHTTP(r *http.Request) string

func HandleDnsRequest

func HandleDnsRequest(w dns.ResponseWriter, r *dns.Msg)

func IpToIpNET

func IpToIpNET(ip string) net.IP

func Main

func Main()

func ParseQuery

func ParseQuery(m *dns.Msg, sourceIp net.Addr)

func PickServerToReturn

func PickServerToReturn(sourceIpLatLng geodist.Coord) *common.FSDServer

func StartDataWebServer

func StartDataWebServer()

func StartDnsServer

func StartDnsServer()

func StartWebServer

func StartWebServer()

Types

type FsdServersCollector

type FsdServersCollector struct {
	CurrentUsers         *prometheus.Desc
	MaxUsers             *prometheus.Desc
	AcceptingConnections *prometheus.Desc
	RemainingSlots       *prometheus.Desc
	Name                 string
}

func (FsdServersCollector) Collect

func (collector FsdServersCollector) Collect(ch chan<- prometheus.Metric)

func (FsdServersCollector) Describe

func (collector FsdServersCollector) Describe(ch chan<- *prometheus.Desc)

type RateCollector

type RateCollector struct {
	DnsRate *prometheus.Desc
}

func (*RateCollector) Collect

func (collector *RateCollector) Collect(ch chan<- prometheus.Metric)

func (*RateCollector) Describe

func (collector *RateCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL