gateway

package
v0.0.0-...-9eaf9d2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProblemTypeRepository

func NewProblemTypeRepository(db *gorm.DB) service.ProblemTypeRepository

func NewRecordbookRepository

func NewRecordbookRepository(ctx context.Context, rf service.RepositoryFactory, db *gorm.DB, problemTypes []domain.ProblemType, studyTypes []domain.StudyType) service.RecordbookRepository

func NewRepositoryFactory

func NewRepositoryFactory(ctx context.Context, db *gorm.DB, driverName string, userRfFunc userS.RepositoryFactoryFunc, pf service.ProcessorFactory, problemTypes []domain.ProblemType, studyTypes []domain.StudyType, problemRepositories map[string]func(context.Context, *gorm.DB) (service.ProblemRepository, error)) (service.RepositoryFactory, error)

func NewStudyTypeRepository

func NewStudyTypeRepository(db *gorm.DB) service.StudyTypeRepository

func NewSynthesizerClient

func NewSynthesizerClient(endpoint, username, password string, timeout time.Duration) (service.SynthesizerClient, error)

func NewUserQuotaRepository

func NewUserQuotaRepository(db *gorm.DB) service.UserQuotaRepository

func ReadCSV

func ReadCSV(fileReader io.Reader, fn func(i int, line []string) error) error

Types

type Repository

type Repository interface {
	DB() *gorm.DB
}

func NewRepository

func NewRepository(db *gorm.DB) Repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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