ftp

package
v0.0.0-...-4d179a5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnonymousUser   = "anonymous"
	AnonymousPasswd = "anonymous"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FtpStreamReader

type FtpStreamReader struct {
	// contains filtered or unexported fields
}

func (*FtpStreamReader) Close

func (fs *FtpStreamReader) Close()

func (*FtpStreamReader) Get

func (fs *FtpStreamReader) Get(ctx context.Context, offset int64, size int64) (io.ReadCloser, error)

func (*FtpStreamReader) Open

func (fs *FtpStreamReader) Open(u string) error

func (*FtpStreamReader) SetConfig

func (fs *FtpStreamReader) SetConfig(key string, value string)

func (*FtpStreamReader) Size

func (fs *FtpStreamReader) Size(ctx context.Context) (int64, error)

type FtpStreamReaderCreator

type FtpStreamReaderCreator struct{}

func (*FtpStreamReaderCreator) Create

func (*FtpStreamReaderCreator) Scheme

func (*FtpStreamReaderCreator) Scheme() string

type ResponseReadCloser

type ResponseReadCloser struct {
	R *ftp.Response
	C *ftp.ServerConn
}

func NewResponseReadCloser

func NewResponseReadCloser(r *ftp.Response, c *ftp.ServerConn) *ResponseReadCloser

func (*ResponseReadCloser) Close

func (rrc *ResponseReadCloser) Close() error

func (*ResponseReadCloser) Read

func (rrc *ResponseReadCloser) Read(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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