dnsstamps

package module
v0.0.0-...-07a0735 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 10

README

go-dnsstamps

DNS Stamps library for Go.

Documentation

Documentation

Index

Constants

View Source
const (
	DefaultPort    = 443
	DefaultDNSPort = 53
	StampScheme    = "sdns://"
)
View Source
const (
	ServerInformalPropertyDNSSEC   = ServerInformalProperties(1) << 0
	ServerInformalPropertyNoLog    = ServerInformalProperties(1) << 1
	ServerInformalPropertyNoFilter = ServerInformalProperties(1) << 2
)
View Source
const (
	StampProtoTypePlain         = StampProtoType(0x00)
	StampProtoTypeDNSCrypt      = StampProtoType(0x01)
	StampProtoTypeDoH           = StampProtoType(0x02)
	StampProtoTypeTLS           = StampProtoType(0x03)
	StampProtoTypeDoQ           = StampProtoType(0x04)
	StampProtoTypeODoHTarget    = StampProtoType(0x05)
	StampProtoTypeDNSCryptRelay = StampProtoType(0x81)
	StampProtoTypeODoHRelay     = StampProtoType(0x85)
)

Variables

This section is empty.

Functions

func NewRelayAndServerStampFromString

func NewRelayAndServerStampFromString(stampStr string) (ServerStamp, ServerStamp, error)

Types

type ServerInformalProperties

type ServerInformalProperties uint64

type ServerStamp

type ServerStamp struct {
	ServerAddrStr string
	ServerPk      []uint8
	Hashes        [][]uint8
	ProviderName  string
	Path          string
	Props         ServerInformalProperties
	Proto         StampProtoType
}

func NewDNSCryptServerStampFromLegacy

func NewDNSCryptServerStampFromLegacy(serverAddrStr string, serverPkStr string, providerName string, props ServerInformalProperties) (ServerStamp, error)

func NewServerStampFromString

func NewServerStampFromString(stampStr string) (ServerStamp, error)

func (*ServerStamp) String

func (stamp *ServerStamp) String() string

type StampProtoType

type StampProtoType uint8

func (*StampProtoType) String

func (stampProtoType *StampProtoType) String() string

Jump to

Keyboard shortcuts

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