grabber

package
v7.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an active grabber object

func New

func New(dlConfig *config.Download, dbConfig *config.Db, serverConfig *config.Server) (*Client, error)

New creates new grabber instance

func (*Client) Close

func (c *Client) Close()

Close closes grabber

func (*Client) Grab

func (c *Client) Grab(files []File) journal.Journal

func (*Client) ListFiles

func (c *Client) ListFiles() []File

type File

type File struct {
	Base    string
	SrcDir  string
	DestDir string
	Info    os.FileInfo
}

File represents a file to grab

Jump to

Keyboard shortcuts

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