Documentation
¶
Index ¶
- type ExamLibraryRestAPIControllerV1
- func (c *ExamLibraryRestAPIControllerV1) GetFindAllExams(ctx context.Context, request server.GetFindAllExamsRequestObject) (server.GetFindAllExamsResponseObject, error)
- func (c *ExamLibraryRestAPIControllerV1) GetFindOneByID(ctx context.Context, request server.GetFindOneByIDRequestObject) (server.GetFindOneByIDResponseObject, error)
- func (c *ExamLibraryRestAPIControllerV1) PostAddExamToLibrary(ctx context.Context, request server.PostAddExamToLibraryRequestObject) (server.PostAddExamToLibraryResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExamLibraryRestAPIControllerV1 ¶
type ExamLibraryRestAPIControllerV1 struct {
UseCase usecase.IExamLibraryUseCase
}
ExamLibraryRestAPIControllerV1 is the controller for the ExamLibrary API
func NewRestAPIController ¶
func NewRestAPIController(uc usecase.IExamLibraryUseCase) *ExamLibraryRestAPIControllerV1
NewRestAPIController creates a new ExamLibraryRestAPIControllerV1
func (*ExamLibraryRestAPIControllerV1) GetFindAllExams ¶
func (c *ExamLibraryRestAPIControllerV1) GetFindAllExams(ctx context.Context, request server.GetFindAllExamsRequestObject) (server.GetFindAllExamsResponseObject, error)
Get all Exams (GET /exams)
func (*ExamLibraryRestAPIControllerV1) GetFindOneByID ¶
func (c *ExamLibraryRestAPIControllerV1) GetFindOneByID(ctx context.Context, request server.GetFindOneByIDRequestObject) (server.GetFindOneByIDResponseObject, error)
Get an Exam by ID (GET /exams/{examID})
func (*ExamLibraryRestAPIControllerV1) PostAddExamToLibrary ¶
func (c *ExamLibraryRestAPIControllerV1) PostAddExamToLibrary(ctx context.Context, request server.PostAddExamToLibraryRequestObject) (server.PostAddExamToLibraryResponseObject, error)
Add a new Exam to the Library (POST /exams)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.