getters

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPGetter

type HTTPGetter struct {
	BaseURL          string
	DefaultExtension string
	MaxConnections   int
}

Getter provides an implementation to retrieve gitignore patterns from files available over HTTP

func (*HTTPGetter) GetIgnoreFiles

func (getter *HTTPGetter) GetIgnoreFiles(names []string, contentsChannel chan contentstructs.RetrievedContents, requestsPending *sync.WaitGroup)

GetIgnoreFiles retrieves gitignore patterns files via HTTP and sends their contents over a channel. It registers each request made with a WaitGroup instance, so the responses can be awaited.

Jump to

Keyboard shortcuts

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