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.
Click to show internal directories.
Click to hide internal directories.