fetchers

package
v0.0.0-...-a55e6db Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2014 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemFetcher

type FilesystemFetcher struct {
	PathPrefix string
}

FilesystemFetcher fetches images from the filesystem.

func (*FilesystemFetcher) Fetch

func (f *FilesystemFetcher) Fetch(urlPath string, dest groupcache.Sink) error

Fetch opens and reads in the image data from the file requested by the user.

type ProxyFetcher

type ProxyFetcher struct {
	ProxyUrlPrefix string
}

ProxyFetcher fetches images from an HTTP server.

func (*ProxyFetcher) Fetch

func (f *ProxyFetcher) Fetch(urlPath string, dest groupcache.Sink) error

Fetch makes an HTTP GET request to fetch the image data requested by the user.

type S3Fetcher

type S3Fetcher struct {
	Auth   aws.Auth
	Region aws.Region
}

S3Fetcher fetches images from an S3 bucket.

func (*S3Fetcher) Fetch

func (f *S3Fetcher) Fetch(urlPath string, dest groupcache.Sink) error

Fetch grabs the image data from the bucket and filename requested by the user.

Jump to

Keyboard shortcuts

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