output

package
v0.0.0-...-732b81e Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CourseDomainCacheRepositoryMock

type CourseDomainCacheRepositoryMock struct {
	SetMock    func(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error
	GetMock    func(contextControl domain.ContextControl, key string) (string, error)
	DeleteMock func(contextControl domain.ContextControl, key string) error
}

func (CourseDomainCacheRepositoryMock) Delete

func (c CourseDomainCacheRepositoryMock) Delete(contextControl domain.ContextControl, key string) error

func (CourseDomainCacheRepositoryMock) Get

func (CourseDomainCacheRepositoryMock) Set

func (c CourseDomainCacheRepositoryMock) Set(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error

type CourseDomainDataBaseRepositoryMock

type CourseDomainDataBaseRepositoryMock struct {
	SaveMock       func(contextControl domain.ContextControl, course domain.CourseDomain) (domain.CourseDomain, error)
	GetByIDMock    func(contextControl domain.ContextControl, ID int64) (domain.CourseDomain, bool, error)
	GetCoursesMock func(contextControl domain.ContextControl, courses []domain.CourseDomain) ([]domain.CourseDomain, error)
}

func (CourseDomainDataBaseRepositoryMock) GetByID

func (CourseDomainDataBaseRepositoryMock) GetCourses

func (CourseDomainDataBaseRepositoryMock) Save

type ICourseDomainCacheRepository

type ICourseDomainCacheRepository interface {
	Set(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error
	Get(contextControl domain.ContextControl, key string) (string, error)
	Delete(contextControl domain.ContextControl, key string) error
}

type ICourseDomainDataBaseRepository

type ICourseDomainDataBaseRepository interface {
	Save(contextControl domain.ContextControl, course domain.CourseDomain) (domain.CourseDomain, error)
	GetByID(contextControl domain.ContextControl, ID int64) (domain.CourseDomain, bool, error)
	GetCourses(contextControl domain.ContextControl, courses []domain.CourseDomain) ([]domain.CourseDomain, error)
}

type IStudentDomainCacheRepository

type IStudentDomainCacheRepository interface {
	Set(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error
	Get(contextControl domain.ContextControl, key string) (string, error)
	Delete(contextControl domain.ContextControl, key string) error
}

type IStudentDomainDataBaseRepository

type IStudentDomainDataBaseRepository interface {
	Save(contextControl domain.ContextControl, course domain.StudentDomain) (domain.StudentDomain, error)
	GetByID(contextControl domain.ContextControl, ID int64) (domain.StudentDomain, bool, error)
	GetStudents(contextControl domain.ContextControl, students []domain.StudentDomain) ([]domain.StudentDomain, error)
}

type StudentDomainCacheRepositoryMock

type StudentDomainCacheRepositoryMock struct {
	SetMock    func(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error
	GetMock    func(contextControl domain.ContextControl, key string) (string, error)
	DeleteMock func(contextControl domain.ContextControl, key string) error
}

func (StudentDomainCacheRepositoryMock) Delete

func (c StudentDomainCacheRepositoryMock) Delete(contextControl domain.ContextControl, key string) error

func (StudentDomainCacheRepositoryMock) Get

func (StudentDomainCacheRepositoryMock) Set

func (c StudentDomainCacheRepositoryMock) Set(contextControl domain.ContextControl, key string, hash string, expirationTime time.Duration) error

type StudentDomainDataBaseRepositoryMock

type StudentDomainDataBaseRepositoryMock struct {
	SaveMock        func(contextControl domain.ContextControl, student domain.StudentDomain) (domain.StudentDomain, error)
	GetByIDMock     func(contextControl domain.ContextControl, ID int64) (domain.StudentDomain, bool, error)
	GetStudentsMock func(contextControl domain.ContextControl, students []domain.StudentDomain) ([]domain.StudentDomain, error)
}

func (StudentDomainDataBaseRepositoryMock) GetByID

func (StudentDomainDataBaseRepositoryMock) GetStudents

func (StudentDomainDataBaseRepositoryMock) Save

Jump to

Keyboard shortcuts

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