Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevel = new(slog.LevelVar)
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"` Quiet bool `name:"quiet" short:"q" help:"quiet mode"` Debug bool `name:"debug" short:"d" help:"enable debug log"` TLS bool `name:"tls" negatable:"" default:"true" help:"enable TLS (default: true)"` Server bool `name:"server" short:"s" help:"run as server"` Cert string `name:"cert" help:"certificate file for server" type:"existingfile"` Key string `name:"key" help:"private key file for server" type:"existingfile"` VerifyTLSCert bool `name:"verify-tls-cert" default:"false" help:"TLS verification for client"` Kill bool `name:"kill" help:"send shutdown command to server"` Ping bool `name:"ping" help:"send ping message to 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"` }
func (*CLI) ClientOption ¶ added in v0.1.0
func (c *CLI) ClientOption() *ClientOption
func (*CLI) ServerOption ¶ added in v0.1.0
func (c *CLI) ServerOption() *ServerOption
type Client ¶
type Client struct {
Option *ClientOption
}
func NewClient ¶
func NewClient(opt *ClientOption) *Client
type ClientOption ¶
Click to show internal directories.
Click to hide internal directories.