services

package
v0.0.0-...-480ba54 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 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) FetchAll

func (ps *PhotoService) FetchAll() ([]*models.Photo, error)

func (*PhotoService) StorePhoto

func (ps *PhotoService) StorePhoto(rawPhoto io.ReadCloser) (int, error)

StorePhoto stores photo in database

Jump to

Keyboard shortcuts

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