getters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: MIT Imports: 10 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
}

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

func (*HTTPGetter) GetIgnoreFiles

func (getter *HTTPGetter) GetIgnoreFiles(names []string) (contents []contentstructs.NamedIgnoreContents, err error)

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