ftp

package
v0.0.0-...-f1279a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FtpScheme = "ftp"

Variables

This section is empty.

Functions

func DownLoad

func DownLoad(remote, local string) error

download file from remote

func Request

func Request(remote string, reader io.Reader) error

upload reader stream data to remote

func Response

func Response(remote string) (io.ReadCloser, error)

get download file response stream

func Upload

func Upload(remote, local string) error

upload local file to remote

Types

type FtpInfo

type FtpInfo struct {
	User     string
	Password string
	Service  string
	Port     string
	Path     string
}

func (*FtpInfo) Address

func (fi *FtpInfo) Address() string

func (*FtpInfo) Check

func (fi *FtpInfo) Check() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL