Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhotoService ¶
type PhotoService struct {
// contains filtered or unexported fields
}
PhotoService struct with info about persistence
func NewPhotoService ¶
func NewPhotoService(photoPersist persistence.PhotoPersistence) PhotoService
NewPhotoService returns struct of photo service
func (*PhotoService) StorePhoto ¶
func (ps *PhotoService) StorePhoto(rawPhoto io.ReadCloser) (int, error)
StorePhoto stores photo in database
Click to show internal directories.
Click to hide internal directories.