ftp

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FTP                  = "ftp"
	DefaultFTPPort       = 21
	FTPWelcomeResponseRe = `^220[- ]` // FTP 220 response code (service ready)
)

FTP protocol constants

Variables

This section is empty.

Functions

This section is empty.

Types

type FTPPlugin

type FTPPlugin struct{}

func (*FTPPlugin) Name

func (p *FTPPlugin) Name() string

func (*FTPPlugin) PortPriority

func (p *FTPPlugin) PortPriority(i uint16) bool

func (*FTPPlugin) Priority

func (p *FTPPlugin) Priority() int

func (*FTPPlugin) Run

func (p *FTPPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*FTPPlugin) Type

func (p *FTPPlugin) Type() plugins.Protocol

Jump to

Keyboard shortcuts

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