Documentation
¶
Overview ¶
Package querylog provides query log functions and interfaces.
Index ¶
Constants ¶
View Source
const ( // ------ CertFilePath = "/etc/letsencrypt/live/net.0ms.dev/fullchain.pem" KeyFilePath = "/etc/letsencrypt/live/net.0ms.dev/privkey.pem" // ------ Mbit float64 = 1000.00 // 1 Mbit Gbit float64 = 1000000.00 // 1 Gbit // ------ Megabyte = 1 << 20 Kilobyte = 1 << 10 )
Variables ¶
View Source
var ( HeapAlloc string SysMem string Frees string NumGCMem string )
do not touch these. should be maintained by the functions automatically.
Functions ¶
This section is empty.
Types ¶
type Cake ¶
type Cake struct {
RTTAverage time.Duration `json:"rttAverage"`
RTTAverageString string `json:"rttAverageString"`
BwUpAverage float64 `json:"bwUpAverage"`
BwUpAverageString string `json:"bwUpAverageString"`
BwDownAverage float64 `json:"bwDownAverage"`
BwDownAverageString string `json:"bwDownAverageString"`
BwUpMedian float64 `json:"bwUpMedian"`
BwUpMedianString string `json:"bwUpMedianString"`
BwDownMedian float64 `json:"bwDownMedian"`
BwDownMedianString string `json:"bwDownMedianString"`
DataTotal string `json:"dataTotal"`
ExecTimeCAKE string `json:"execTimeCAKE"`
ExecTimeAverageCAKE string `json:"execTimeAverageCAKE"`
}
type ClientProto ¶
type ClientProto string
ClientProto values are names of the client protocols.
const ( ClientProtoDoH ClientProto = "doh" ClientProtoDoQ ClientProto = "doq" ClientProtoDoT ClientProto = "dot" ClientProtoDNSCrypt ClientProto = "dnscrypt" ClientProtoPlain ClientProto = "" )
Client protocol names.
func NewClientProto ¶
func NewClientProto(s string) (cp ClientProto, err error)
NewClientProto validates that the client protocol name is valid and returns the name as a ClientProto.
Click to show internal directories.
Click to hide internal directories.