download

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const AGENT = "go-gdc/0.0.0 (%s) %s (%s)"
View Source
const RESOURCE = "https://%s:%d%s"

Variables

View Source
var Flags = []cli.Flag{
	cli.StringFlag{
		Name:  "p, path",
		Usage: "path to target directory",
		Value: ".",
	},
	cli.StringFlag{
		Name:  "m, manifest",
		Usage: "GDC manifest file",
	},
}

Functions

func DownloadAction

func DownloadAction(c *cli.Context)

func DownloadBulkAction

func DownloadBulkAction(c *cli.Context)

Types

type DownloadClient

type DownloadClient struct {
	client.Client
}

func NewDownloadClient

func NewDownloadClient(host string, port uint16) DownloadClient

func (*DownloadClient) Download

func (c *DownloadClient) Download(id string, token string) (*http.Response, error)

Jump to

Keyboard shortcuts

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