querylog

package
v0.0.0-...-3761f26 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

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 CakeData

type CakeData struct {
	RTT               time.Duration `json:"rtt"`
	BandwidthUpload   float64       `json:"bandwidthUpload"`
	BandwidthDownload float64       `json:"bandwidthDownload"`
}

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.

Jump to

Keyboard shortcuts

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