Documentation ¶
Index ¶
- func Load() *module
- type Command
- type Conn
- type DataSocket
- type FileInfo
- type Server
- type Storage
- type VirtualFS
- func (vfs VirtualFS) Clone() VirtualFS
- func (vfs VirtualFS) Exists(path string) bool
- func (vfs VirtualFS) ListDir(path string, callback func(FileInfo) error) error
- func (vfs VirtualFS) MkDir(path string)
- func (vfs VirtualFS) PutFile(path string, f models.File)
- func (vfs VirtualFS) ReadFile(path string) []byte
- func (vfs VirtualFS) RemoveFile(path string)
- func (vfs VirtualFS) Stat(path string) (*vfsNode, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command interface { IsExtend() bool RequireParam() bool RequireAuth() bool Execute(*Conn, string) }
Command represents a Command interface to a ftp command
type Conn ¶
func (*Conn) Close ¶
func (conn *Conn) Close()
Close will manually close this connection, even if the client isn't ready.
func (*Conn) PassivePort ¶
PassivePort returns the port which could be used by passive mode.
type DataSocket ¶
type DataSocket interface { Host() string Port() int // the standard io.Reader interface Read(p []byte) (n int, err error) // the standard io.ReaderFrom interface ReadFrom(r io.Reader) (int64, error) // the standard io.Writer interface Write(p []byte) (n int, err error) // the standard io.Closer interface Close() error }
DataSocket describes a data socket is used to send non-control data between the client and server.
type Server ¶
Click to show internal directories.
Click to hide internal directories.