gogetterx

package
v0.29.4-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, dst io.Writer, src io.Reader) (int64, error)

Copy is a io.Copy cancellable by context.

Types

type FileGetter

type FileGetter struct {
	Copy bool
	// contains filtered or unexported fields
}

func (*FileGetter) ClientMode

func (g *FileGetter) ClientMode(u *url.URL) (gogetter.ClientMode, error)

func (*FileGetter) Context

func (g *FileGetter) Context() context.Context

func (*FileGetter) Get

func (g *FileGetter) Get(dst string, u *url.URL) error

func (*FileGetter) GetFile

func (g *FileGetter) GetFile(dst string, u *url.URL) error

func (*FileGetter) SetClient

func (g *FileGetter) SetClient(c *gogetter.Client)

Jump to

Keyboard shortcuts

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