object

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(interactor interactor.ImageInteractor, bucketNameThumbnail string) *Controller

func (*Controller) CreateThumbnail

func (c *Controller) CreateThumbnail(ctx context.Context, key string, bucketName string) error

type Repository

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

func NewRepository

func NewRepository(storage gateway.ObjectStorage, bucketNameOriginal string, bucketNameThumbnail string) *Repository

func (*Repository) Find

func (repo *Repository) Find(ctx context.Context, name string, format domain.ImageFormat, isThumbnail bool) (*domain.Image, error)

func (*Repository) Save

func (repo *Repository) Save(ctx context.Context, img *domain.Image) error

Jump to

Keyboard shortcuts

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