discovery

package
v0.0.0-...-a6f6231 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer interface {
	DnsDiscoverer
}

general interface for discovery

type Discovery

type Discovery struct {
	// The domain name to query.
	Domain string `json:"domain"`
	// Ipsv4 addresses of the requested domain
	Ips []string `json:"ips"`
	// Flag telling if server  at domain supports mailio protocol
	IsMailio bool `json:"isMailio"`
	// Mailio base64 public key (if Mailio flag is true)
	PublicKey string `json:"publicKey,omitempty"`
	// The type of the public key (ed25519 support only at the moment)
	PublicKeyType string `json:"publicKeyType,omitempty"`
}

DnsDiscovery is a Discovery that scans for DNS records.

type DnsDiscoverer

type DnsDiscoverer interface {
	Discover(ctx context.Context, domain string) (*Discovery, error)
}

Jump to

Keyboard shortcuts

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