pkgs

package
v0.0.0-...-c108aef Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(filePath string, pf Fragment) error

Downloads packages to the specified directory

Types

type Fragment

type Fragment struct {
	// Name of the package
	Name string
	// Download URL for the package
	URL string
}

Originally named PackageInfo, just contains some small data about the package for the download process

type PackageContext

type PackageContext struct {
	Shortcake *utils.ShortCache
	Flags     *cli.Flags
	Castella  *PipeFragment
}

func New

func New(flags *cli.Flags, q *PipeFragment) *PackageContext

func (*PackageContext) Seek

func (pc *PackageContext) Seek(safeDoc *utils.SafeQuery, swg *sync.WaitGroup)

Seek(Package)

Searches for the main package and all of its dependencies

type PipeFragment

type PipeFragment struct {
	Fragments chan Fragment
	QQ        chan error
	Signal    chan struct{}
}

Fragment & Error channels

func NewPipeFragment

func NewPipeFragment(fSize, eSize int) *PipeFragment

Jump to

Keyboard shortcuts

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