storage

package
v0.0.0-...-d1236c8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Images

type Images interface {
	ChecksumDataURL(string) (string, error)
	StoreDataURL(string) error
	PathsFor(checksum string) (*model.OfferImagePaths, error)
	HasChecksum(checksum string) (bool, error)
	GetOriginal(checksum string) (image.Image, error)
}

Images is a wrapper around imstor.Storage that offers a type safe way to get paths for image sizes specific to this application. It also prepends the `images/` to all the returned paths.

func NewImages

func NewImages() Images

Jump to

Keyboard shortcuts

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