service

package
v0.0.0-...-ab84f95 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 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 Dependencies

type Dependencies struct {
	Repos *repository.Repositories
}

type Orphanages

type Orphanages interface {
	All() ([]domain.Orphanage, error)
	FindByID(id string) (domain.Orphanage, error)
	Create(orphanage *domain.Orphanage, images []*multipart.FileHeader) error
}

type OrphanagesService

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

func NewOrphanagesService

func NewOrphanagesService(repo repository.Orphanages) *OrphanagesService

func (*OrphanagesService) All

func (s *OrphanagesService) All() ([]domain.Orphanage, error)

func (*OrphanagesService) Create

func (s *OrphanagesService) Create(orphanage *domain.Orphanage, images []*multipart.FileHeader) error

func (*OrphanagesService) FindByID

func (s *OrphanagesService) FindByID(id string) (domain.Orphanage, error)

type Services

type Services struct {
	Orphanages Orphanages
}

func NewServices

func NewServices(deps Dependencies) *Services

Jump to

Keyboard shortcuts

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