thumb

package
v0.0.0-...-56d1af4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache is the thumbnail cache type.

func New

func New(cachePath string, maxWidth, maxHeight uint) *Cache

New initialized a new Cache with specified parameters.

func (*Cache) GetThumb

func (cache *Cache) GetThumb(folder *physical.Folder, name string) (io.Reader, error)

GetThumb returns the thumbnail stream or an error.

Jump to

Keyboard shortcuts

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