image

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository of image

func New

func New(redis redis.Redis) *Repository

New repository for image

func (Repository) GetTempPath

func (r Repository) GetTempPath(ctx context.Context, id string) (string, error)

GetTempPath will return the original path from a temporary id

func (Repository) SaveTempPath

func (r Repository) SaveTempPath(ctx context.Context, id, originalPath string, expiryTime time.Duration) error

SaveTempPath image path

Jump to

Keyboard shortcuts

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