Documentation
¶
Index ¶
- type Connection
- func (c *Connection) Cmd(exp int, format string, args ...interface{}) (code int, msg string, err error)
- func (c *Connection) Connect()
- func (c *Connection) Download(filename string, dest string) error
- func (c *Connection) NameList() ([]string, error)
- func (c *Connection) Passive() (net.Conn, error)
- func (c *Connection) Quit()
- func (c *Connection) Type(t string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Debug bool // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(addr string, port string) *Connection
func (*Connection) Connect ¶
func (c *Connection) Connect()
func (*Connection) NameList ¶
func (c *Connection) NameList() ([]string, error)
todo: support argument to namelist e.g. *.ls
func (*Connection) Quit ¶
func (c *Connection) Quit()
func (*Connection) Type ¶
func (c *Connection) Type(t string)
Click to show internal directories.
Click to hide internal directories.