Documentation ¶
Index ¶
Constants ¶
View Source
const ( FetchDefaultLimit = 100 FetchMaxLimit = 500 TestMaxLimit = 40 MaxOrders = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchConfig ¶
type GenerateTestConfig ¶
type Repository ¶
type Repository interface { Store(ctx context.Context, input *model.QuestionInput) (*model.Question, error) UpdateOneByID(ctx context.Context, id int, input *model.QuestionInput) (*model.Question, error) Delete(ctx context.Context, f *model.QuestionFilter) ([]*model.Question, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*model.Question, int, error) GenerateTest(ctx context.Context, cfg *GenerateTestConfig) ([]*model.Question, error) }
type Usecase ¶
type Usecase interface { Store(ctx context.Context, input *model.QuestionInput) (*model.Question, error) UpdateOneByID(ctx context.Context, id int, input *model.QuestionInput) (*model.Question, error) Delete(ctx context.Context, f *model.QuestionFilter) ([]*model.Question, error) Fetch(ctx context.Context, cfg *FetchConfig) ([]*model.Question, int, error) GetByID(ctx context.Context, id int) (*model.Question, error) GenerateTest(ctx context.Context, cfg *GenerateTestConfig) ([]*model.Question, error) }
Click to show internal directories.
Click to hide internal directories.