Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { // Path is optional if Name, Ext and MimeType are provided Path string // Name, Ext and MimeType are optional if Path is provided Name string Ext string MimeType string ProgressWriter io.Writer // contains filtered or unexported fields }
File represents the file being transferred, whether its from an actual file or stdin. File also holds the files metadata.
func (*File) WriteProgress ¶ added in v0.6.0
func (f *File) WriteProgress()
type Server ¶
type Server struct { Port string Username string Password string CertFile string KeyFile string ErrorLog *log.Logger InfoLog *log.Logger Timeout time.Duration // zero value -> max duration Download bool // should "Content-Disposition" header be set? Done chan struct{} // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.