middleware

package
v0.0.0-...-3e76ffc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSftpSubsystemHandler

func AddSftpSubsystemHandler(handler Handler, logger logger.AccessLogger, handlers map[string]ssh.SubsystemHandler) map[string]ssh.SubsystemHandler

AddSftpSubsystemHandler adds a handler for the sftp protocol to the given handlers by using the given handler function that creates a sftp.Handlers instance for every new connection happening. The logger parameter is used to log errors and accesses.

Types

type Handler

type Handler func(info logger.ConnectionInfo) sftp.Handlers

Handler is a function that handles a new connection and creates the desired sftp.Handlers filesystem to serve for this connection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL