Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FTPUploader ¶
type FTPUploader struct {
// contains filtered or unexported fields
}
type S3Uploader ¶
type S3Uploader struct {
// contains filtered or unexported fields
}
type SFTPUploader ¶
type SFTPUploader struct {
// contains filtered or unexported fields
}
type Uploader ¶
type Uploader interface { // Upload загружает файл по указанному имени Upload(file *os.File, name string) (string, error) }
func NewFTP ¶
func NewFTP(addr string, login string, password string, dir string, pathPrefix string, urlPrefix string) Uploader
NewFTP создает настроенный FTPUploader(s) uploader
Click to show internal directories.
Click to hide internal directories.