tlsrpt

package
v0.71.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tlsrpt provides types for building a TLSRPT (SMTP TLS Reporting) DNS TXT record.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Version            string   `mapstructure:"version"`
	ReportURIAggregate []string `mapstructure:"report-uri-aggregate"`
}

Record represents a TLSRPT (TLS Reporting) DNS TXT record.

func (*Record) RecordPrefix

func (r *Record) RecordPrefix() string

RecordPrefix returns the DNS owner label prefix for a TLSRPT record, always "_smtp._tls.".

func (*Record) RecordType

func (r *Record) RecordType() string

RecordType returns the DNS record type string, "TXT".

func (*Record) RecordValue

func (r *Record) RecordValue() string

RecordValue returns the wire-ready, quoted TLSRPT record value.

func (*Record) String

func (r *Record) String() string

Jump to

Keyboard shortcuts

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