dummy

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = Dummy{
	[]plugins.Option{
		&plugins.StringOption{K: "Hello", V: "World", Required: false},
		&plugins.StringOption{K: "I Like", V: "Potatoes", Required: false},
	},
}

Functions

This section is empty.

Types

type DelayedReader

type DelayedReader struct {
	io.Reader
	// contains filtered or unexported fields
}

Using random intervals, sleeps here and there between reads.

func (*DelayedReader) Read

func (d *DelayedReader) Read(p []byte) (int, error)

type Dummy

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

func (*Dummy) CanHandle

func (d *Dummy) CanHandle(url string) bool

func (*Dummy) Cleanup added in v0.4.1

func (d *Dummy) Cleanup(err error)

func (*Dummy) DownloadGenerator

func (d *Dummy) DownloadGenerator(url string) (dlgen func() plugins.Downloader, length int)

func (*Dummy) Name

func (d *Dummy) Name() string

func (*Dummy) Options

func (d *Dummy) Options() []plugins.Option

func (*Dummy) Version

func (d *Dummy) Version() string

Jump to

Keyboard shortcuts

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