common

package
v0.0.0-...-80ba963 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialXMPP

func DialXMPP(ctx context.Context, addr jid.JID, features ...xmpp.StreamFeature) (*xmpp.Session, error)

func NewQuery

func NewQuery(qname string, qtype uint16, qclass uint16) *dane.Query

NewQuery returns an initialized Query structure from the given query parameters.

Types

type Addresses

type Addresses struct {
	IPs    []net.IP
	Dnssec bool
}

func GetAddresses

func GetAddresses(resolver *dane.Resolver, hostname string) (Addresses, error)

GetAddresses obtains a list of IPv4 and IPv6 addresses for given hostname.

type CheckResult

type CheckResult struct {
	Service    string
	Dnssec     bool
	Daneok     bool
	AllChecked bool
	Tlsa       map[string]dane.TLSAinfo
	Err        error
}

func CheckOne

func CheckOne(hostname string) CheckResult

type SRVResponse

type SRVResponse struct {
	Srvs   []dns.SRV
	Dnssec bool
}

func GetSRV

func GetSRV(resolver *dane.Resolver, topname string) (SRVResponse, error)

type TargetResult

type TargetResult struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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