Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers interface { CreateNewExamSchedules() gin.HandlerFunc FindExamSchedules() gin.HandlerFunc UpdateExamSchedulesByUsername() gin.HandlerFunc }
type Repository ¶
type Repository interface { Create(ctx context.Context, examSchedules *models.ExamSchedules) (*mongo.InsertOneResult, error) Find(ctx context.Context, filter interface{}) ([]*models.ExamSchedules, error) FindOne(ctx context.Context, filter interface{}) (*models.ExamSchedules, error) FindOneAndUpdate(ctx context.Context, filter interface{}, update interface{}) (*models.ExamSchedules, error) }
type UseCase ¶
type UseCase interface { CreateNewExamSchedules(ctx context.Context, examSchedules *models.ExamSchedules) (*mongo.InsertOneResult, error) FindExamSchedules(ctx context.Context) ([]*models.ExamSchedules, error) FindExamSchedulesByUsername(ctx context.Context, filter interface{}) (*models.ExamSchedules, error) UpdateExamSchedulesByUsername(ctx context.Context, filter interface{}, update bson.M) (*models.ExamSchedules, error) }
Click to show internal directories.
Click to hide internal directories.