Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRecords ¶
LoadRecords loads DNS records from environment variables
func ResolveServiceIP ¶
ResolveServiceIP attempts to resolve Docker service name to IP
Types ¶
type RecordType ¶
type RecordType string
const ( ARecord RecordType = "A" CNAMERecord RecordType = "CNAME" MXRecord RecordType = "MX" TXTRecord RecordType = "TXT" // Record separator RecordSeparator = "|" )
type RelayClient ¶ added in v1.1.0
type RelayClient struct {
// contains filtered or unexported fields
}
func NewRelayClient ¶ added in v1.1.0
func NewRelayClient(config config.RelayConfig) (*RelayClient, error)
NewRelayClient creates a new RelayClient with the provided configuration. It returns an error if the configuration is invalid.
type RelayError ¶ added in v1.1.0
type RelayError struct { Server string Err error Query string // DNS query that failed Rcode int // DNS response code if available }
func (*RelayError) Error ¶ added in v1.1.0
func (e *RelayError) Error() string
Click to show internal directories.
Click to hide internal directories.