service

package
v0.0.0-...-528a66c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHomeworkService

func NewHomeworkService(homeworkGateway HomeworkGateway) *homeworkService

func NewMockHomeworkService

func NewMockHomeworkService() *mockHomeworkService

Types

type HomeworkGateway

type HomeworkGateway interface {
	GetSubjects(opts entity.Opts) ([]*entity.Subject, error)
	GetAuthors(opts entity.Opts) ([]*entity.Author, error)
	GetSpecifications(opts entity.Opts) ([]*entity.Specification, error)
	GetYears(opts entity.Opts) ([]*entity.Year, error)
	GetTopicsOrExercises(opts entity.Opts) ([]*entity.TopicOrExercise, error)
}

Jump to

Keyboard shortcuts

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