gateway

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSynthesizerClient

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

func NewTransaction

func NewTransaction(db *gorm.DB, rff RepositoryFactoryFunc) (service.Transaction, error)

func ReadCSV

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

Types

type ProblemTypes

type ProblemTypes interface {
	ToProblemTypeID(problemType domain.ProblemTypeName) (uint, error)
	ToProblemType(studyTypeID uint) (domain.ProblemTypeName, error)
}

func NewProblemTypes

func NewProblemTypes(data []domain.ProblemType) ProblemTypes

type RepositoryFactoryFunc

type RepositoryFactoryFunc func(ctx context.Context, db *gorm.DB) (service.RepositoryFactory, error)

type StudyTypes

type StudyTypes interface {
	ToStudyTypeID(studyType domain.StudyTypeName) (uint, error)
	ToStudyType(studyTypeID uint) (domain.StudyTypeName, error)
	Values() []domain.StudyType
}

func NewStudyTypes

func NewStudyTypes(data []domain.StudyType) StudyTypes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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