stamps

package
v0.0.0-...-35ecf17 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

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)
)
View Source
const DefaultPort = 443

Variables

This section is empty.

Functions

This section is empty.

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