Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized represents an unauthorized access error.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware defines a function type for middleware.
func Logging ¶
func Logging(log *slog.Logger) Middleware
Logging returns a middleware that logs incoming session details, and closed connections, as well as any error that may have caused the connection to close.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router manages routing and middleware for SSH sessions.
Click to show internal directories.
Click to hide internal directories.