sdns: github.com/semihalev/sdns/server/doh Index | Files

package doh

import "github.com/semihalev/sdns/server/doh"

Index

Package Files

doh.go msg.go qtype.go

func HandleJSON Uses

func HandleJSON(handle func(*dns.Msg) *dns.Msg) func(http.ResponseWriter, *http.Request)

HandleJSON handle json format

func HandleWireFormat Uses

func HandleWireFormat(handle func(*dns.Msg) *dns.Msg) func(http.ResponseWriter, *http.Request)

HandleWireFormat handle wire format

func ParseQTYPE Uses

func ParseQTYPE(s string) uint16

ParseQTYPE function

type Msg Uses

type Msg struct {
    Status    int
    TC        bool
    RD        bool
    RA        bool
    AD        bool
    CD        bool
    Question  []Question
    Answer    []RR `json:",omitempty"`
    Authority []RR `json:",omitempty"`
}

Msg struct

func NewMsg Uses

func NewMsg(m *dns.Msg) *Msg

NewMsg function

type Question Uses

type Question struct {
    Name   string `json:"name"`
    Qtype  uint16 `json:"type"`
    Qclass uint16 `json:"-"`
}

Question struct

type RR Uses

type RR struct {
    Name string `json:"name"`
    Type uint16 `json:"type"`
    TTL  uint32 `json:"TTL"`
    Data string `json:"data"`
}

RR struct

Package doh imports 8 packages (graph) and is imported by 1 packages. Updated 2020-10-28. Refresh now. Tools for package owners.