Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrClose = errors.New("connection closed")
)
Functions ¶
func SessionHandler ¶
Types ¶
type Data ¶
type Data struct {
User string `structs:"user"`
Pass string `structs:"pass"`
Type string `structs:"type"`
Pasv string `structs:"pasv"`
Epsv string `structs:"epsv"`
Port string `structs:"port"`
Eprt string `structs:"eprt"`
Retr string `structs:"retr"`
}
Data stores args passed to the corresponding FTP commands.
type Meta ¶
type Meta struct {
Session Data `json:"session"`
}
Meta contains FTP-specific event metadata.
type Msg ¶
type Msg struct {
// Greet is server greet message.
Greet string
}
Msg is used to store provided command responses.
type OnCloseFunc ¶
type Option ¶
type Option func(*options)
func NotifyStartedFunc ¶
func NotifyStartedFunc(f func()) Option
Click to show internal directories.
Click to hide internal directories.