Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTLSConfig ¶
func HandleFTPCommands ¶
func HandleFTPCommands(conn *FTPServer)
handleFTPCommands handles the FTP commands received on the connection
Types ¶
type FTPServer ¶
type FTPServer struct { net.Conn Logger *log.Logger ErrLogger *log.Logger UseTLS bool TLSConf *tls.Config DataConn net.Conn DataListener net.Listener IsPassive bool Username string MainDir string CurrDir string TransferMode string DB *sql.DB IsAuthed bool }
FTPServer represents a connection to the FTP server
Click to show internal directories.
Click to hide internal directories.