service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastingsFilter

func FastingsFilter(r requests.FastingRequest, d []types.Fasting) []types.Fasting

Types

type CategoryService

type CategoryService struct {
	CategoryRepo *repository.CategoryRepository
}

func NewCategoryService

func NewCategoryService(categoryRepo *repository.CategoryRepository) *CategoryService

func (*CategoryService) GetAll

func (s *CategoryService) GetAll() ([]types.Category, error)

type FastingService

type FastingService struct {
	FastingRepo  *repository.FastingRepository
	CategoryRepo *repository.CategoryRepository
	TypesRepo    *repository.TypesRepository
}

func NewFastingService

func NewFastingService(fastingRepo *repository.FastingRepository, categoryRepo *repository.CategoryRepository, typesRepo *repository.TypesRepository) *FastingService

func (*FastingService) GetAll

type SourceService

type SourceService struct {
	SourceRepo *repository.SourceRepository
}

func NewSourceService

func NewSourceService(sourceRepo *repository.SourceRepository) *SourceService

func (*SourceService) GetAll

func (s *SourceService) GetAll() ([]types.Source, error)

type TypesService

type TypesService struct {
	TypesRepo *repository.TypesRepository
}

func NewTypesService

func NewTypesService(typesRepo *repository.TypesRepository) *TypesService

func (*TypesService) GetAll

func (s *TypesService) GetAll() ([]types.Type, error)

Jump to

Keyboard shortcuts

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