Documentation ¶
Index ¶
- type IMiddlewareTutorRepo
- type IStudentTutorRepo
- type ITutorRepo
- type ITutorService
- type Tutor
- type TutorController
- type TutorRepo
- func (tr *TutorRepo) CreateTutor(tutor *Tutor) error
- func (tr *TutorRepo) GetTutor(filter interface{}) (*Tutor, error)
- func (sr *TutorRepo) GetTutors(filter interface{}) ([]*Tutor, error)
- func (tr *TutorRepo) TutorExists(filter interface{}) (bool, error)
- func (tr *TutorRepo) UpdateTutor(filter interface{}, update interface{}) error
- type TutorService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMiddlewareTutorRepo ¶
type IStudentTutorRepo ¶
type ITutorRepo ¶
type ITutorService ¶
type TutorController ¶
type TutorController struct {
// contains filtered or unexported fields
}
func NewTutorController ¶
func NewTutorController(tutorService ITutorService) *TutorController
func (*TutorController) Profile ¶
func (tc *TutorController) Profile(c *gin.Context)
func (*TutorController) SignUp ¶
func (tc *TutorController) SignUp(c *gin.Context)
type TutorRepo ¶
type TutorRepo struct {
// contains filtered or unexported fields
}
func NewTutorRepo ¶
func (*TutorRepo) CreateTutor ¶
func (*TutorRepo) TutorExists ¶
func (*TutorRepo) UpdateTutor ¶
type TutorService ¶
type TutorService struct {
// contains filtered or unexported fields
}
func NewTutorService ¶
func NewTutorService(tutorRepo ITutorRepo, verificationTokenManager utils.IVerificationTokenManager, accessTokenManager utils.IAccessTokenManager, emailManager utils.IEmailManager, baseUrl string) *TutorService
func (*TutorService) GetTutor ¶
func (ts *TutorService) GetTutor(id primitive.ObjectID) (*Tutor, error)
func (*TutorService) SignUpTutor ¶
func (ts *TutorService) SignUpTutor(tutor *Tutor) error
Click to show internal directories.
Click to hide internal directories.