Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StreamBufferSize = 1024 * 1024
)
Functions ¶
Types ¶
type CLI ¶
type CLI struct { Host string `name:"host" short:"h" default:"localhost" help:"host name"` Port int `name:"port" short:"p" default:"8022" help:"port number"` Server bool `name:"server" short:"s" help:"run as server"` Quiet bool `name:"quiet" short:"q" help:"quiet mode for client"` Kill bool `name:"kill" short:"k" help:"kill server"` Src string `arg:"" optional:"" name:"src" short:"s" description:"source file path"` Dest string `arg:"" optional:"" name:"dest" short:"d" description:"destination file path"` }
type Client ¶
type Client struct {
Option *ClientOption
}
func NewClient ¶
func NewClient(opt *ClientOption) *Client
type ClientOption ¶
type ServerOption ¶
Click to show internal directories.
Click to hide internal directories.