Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() wish.Middleware
Middleware provides basic connection logging. Connects are logged with the remote address, invoked command, TERM setting, window dimensions and if the auth was public key based. Disconnect will log the remote address and connection duration.
The logger is set to the std default logger.
func MiddlewareWithLogger ¶ added in v0.6.0
func MiddlewareWithLogger(logger Logger) wish.Middleware
MiddlewareWithLogger provides basic connection logging. Connects are logged with the remote address, invoked command, TERM setting, window dimensions and if the auth was public key based. Disconnect will log the remote address and connection duration.
Types ¶
Click to show internal directories.
Click to hide internal directories.