Documentation
¶
Index ¶
- func FromEnglishSentenceModel(model *libapi.EnglishSentencesModel) ([]byte, error)
- func NewCocotolaAuthClient(httpClient HTTPClient, authEndpoint *url.URL, ...) service.CocotolaAuthClient
- func NewNonTransactionManager(rf service.RepositoryFactory) (service.TransactionManager, error)
- func NewTransactionManager(db *gorm.DB, rff RepositoryFactoryFunc) (service.TransactionManager, error)
- func NewWorkbookRepository(db *gorm.DB) service.WorkbookRepository
- func ToEnglishSentenceModel(content []byte) (*libapi.EnglishSentencesModel, error)
- type HTTPClient
- type RepositoryFactory
- type RepositoryFactoryFunc
- type WorkbookEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEnglishSentenceModel ¶
func FromEnglishSentenceModel(model *libapi.EnglishSentencesModel) ([]byte, error)
func NewCocotolaAuthClient ¶
func NewCocotolaAuthClient(httpClient HTTPClient, authEndpoint *url.URL, authUsername, authPassword string) service.CocotolaAuthClient
func NewNonTransactionManager ¶
func NewNonTransactionManager(rf service.RepositoryFactory) (service.TransactionManager, error)
func NewTransactionManager ¶
func NewTransactionManager(db *gorm.DB, rff RepositoryFactoryFunc) (service.TransactionManager, error)
func NewWorkbookRepository ¶
func NewWorkbookRepository(db *gorm.DB) service.WorkbookRepository
func ToEnglishSentenceModel ¶
func ToEnglishSentenceModel(content []byte) (*libapi.EnglishSentencesModel, error)
Types ¶
type RepositoryFactory ¶
type RepositoryFactory struct {
// contains filtered or unexported fields
}
func NewRepositoryFactory ¶
func NewRepositoryFactory(ctx context.Context, dialect rslibgateway.DialectRDBMS, driverName string, db *gorm.DB, location *time.Location) (*RepositoryFactory, error)
func (*RepositoryFactory) NewWorkbookRepository ¶
func (f *RepositoryFactory) NewWorkbookRepository(ctx context.Context) (service.WorkbookRepository, error)
type RepositoryFactoryFunc ¶
type WorkbookEntity ¶
type WorkbookEntity struct { ID int Version int CreatedAt time.Time UpdatedAt time.Time CreatedBy int UpdatedBy int OrganizationID int Name string ProblemType string Lang2 string Description string Content string }
func (*WorkbookEntity) TableName ¶
func (e *WorkbookEntity) TableName() string
func (*WorkbookEntity) ToModel ¶
func (e *WorkbookEntity) ToModel() (*libapi.WorkbookRetrieveResult, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.