interfaces

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 3 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 interface {
	GetPhotos(offset, count int) ([]*models.Photo, error)
	GetPhotosByIDs(photoIDs []string) ([]*models.Photo, error)
	CreatePhoto(photoID, creator, url, blurHash string, height, width, size int) error
}

type Service

type Service interface {
	GetPhotos(offset, count int) ([]*models.Photo, error)
	GetPhotosByIDs(photoIDs []string) ([]*models.Photo, error)
	SavePhoto(creator string, src multipart.File, height, width int) (models.Photo, error)
}

type Storage

type Storage interface {
	SaveObject(key string, body io.Reader) (string, error)
}

Jump to

Keyboard shortcuts

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