Versions in this module Expand all Collapse all v0 v0.16.0 Nov 8, 2026 v0.15.0 Oct 26, 2026 Changes in this version + func DiagnosticEnabled(observer DiagnosticObserver, level int) bool + func EmitDiagnostic(observer DiagnosticObserver, event Diagnostic) + type Diagnostic struct + Accepted bool + Attempt int + ClientVersion string + Destination string + Direction string + ExitCode int64 + Extension string + ExtensionVersion string + Fingerprint string + HasExitCode bool + HasPacketID bool + HasStatus bool + Host string + HostKey string + KeyExchange string + Kind DiagnosticKind + Level int + Method string + Methods []string + NodeID string + Operation string + Outcome string + PacketID uint32 + PacketLength uint32 + PacketType uint8 + Path string + Port int + PrivilegeCommand string + PrivilegePrompt string + PrivilegePromptPattern string + ProtocolVersion uint32 + Proxied bool + ReadCipher string + ReadMAC string + ServerVersion string + Size int64 + Source string + StatusCode uint32 + StreamID uint64 + Truncated bool + User string + WriteCipher string + WriteMAC string + type DiagnosticKind string + const Authenticated + const AuthenticationAttempt + const AuthenticationMethods + const Connected + const Connecting + const ConnectionReused + const FileTransfer + const ForwardLifecycle + const HandshakeFailed + const HostKeyChecked + const Negotiated + const PrivilegeLifecycle + const SFTPExtension + const SFTPMalformed + const SFTPOperation + const SFTPPacket + const SFTPVersion + const SessionCleanup + const SessionFinished + const SessionRequest + const SessionStarted + const SubsystemFailed + const SubsystemReady + const SubsystemStarting + const SubsystemStderr + type DiagnosticObserver interface + ObserveDiagnostic func(Diagnostic) v0.14.0 Oct 13, 2026 Changes in this version + type DebugLogger interface + Debug func(msg string, args ...any) + Debugf func(format string, args ...any) + var NopLogger DebugLogger = nopLogger{}