Documentation
¶
Overview ¶
Package connerr sorts errors from connecting to a broker or a Schema Registry into a few stable classes with fixed texts. A class text never contains an address, host name, port, resolver detail or operating system error string, so it may be returned to a client that supplied the destination. The full error belongs in the server log only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Class ¶
type Class string
Class is the kind of a connection failure. Its value is stable and machine-readable; Message is its client-facing text.
const ( // Refused: the destination refused the connection. Refused Class = "refused" // Timeout: connecting, or a request on the connection, timed out. Timeout Class = "timeout" // DNS: a host name did not resolve. DNS Class = "dns" // TLS: the TLS handshake failed, or one side expected TLS and the // other did not. TLS Class = "tls" // SASL: the broker refused the credentials or the SASL mechanism. SASL Class = "sasl" // Blocked: the outbound address guard refused the destination. Blocked Class = "blocked" // Unreachable: any other failure. Unreachable Class = "unreachable" )
The connection error classes.
Click to show internal directories.
Click to hide internal directories.