Documentation ¶
Index ¶
- Variables
- func Start()
- type Mock
- func (m Mock) Connect(config db.Config)
- func (m Mock) Fetch(infos *tracer.Infos, s string, i ...interface{}) ([]map[string]interface{}, error)
- func (m Mock) Get(infos *tracer.Infos, s string, i ...interface{}) (map[string]interface{}, error)
- func (m Mock) Insert(infos *tracer.Infos, s string, i ...interface{}) (sql.Result, error)
- func (m Mock) Update(infos *tracer.Infos, s string, i ...interface{}) (sql.Result, error)
- type Review
- func (r *Review) GetReviewAverageByTeacherId(i *tracer.Infos, teacherId string) (map[string]interface{}, error)
- func (r *Review) GetReviewsByTeacherId(i *tracer.Infos, teacherId string) ([]map[string]interface{}, error)
- func (r *Review) SaveReview(i *tracer.Infos, comment string, value float64, student, teacher int) error
- type Student
- type Teacher
- func (t *Teacher) Create(i *tracer.Infos, email string) error
- func (t *Teacher) Edit(i *tracer.Infos, email string, formation string, specialization string, ...) error
- func (t *Teacher) GetNextPageTeacher(i *tracer.Infos, name string) (map[string]interface{}, error)
- func (t *Teacher) GetTeacherById(i *tracer.Infos, id int) (map[string]interface{}, error)
- func (t *Teacher) GetTeacherByPhoneticName(i *tracer.Infos, name string, page int) ([]map[string]interface{}, error)
- type User
- func (u *User) ChangePassword(i *tracer.Infos, email, password string) error
- func (u *User) Edit(i *tracer.Infos, ...) error
- func (u *User) GetUserByEmail(i *tracer.Infos, email string) (map[string]interface{}, error)
- func (u *User) GetUserByNick(i *tracer.Infos, nickname string) (map[string]interface{}, error)
- func (u *User) SaveProfile(i *tracer.Infos, email string, register, gender int, ...) error
- func (u *User) SaveUser(i *tracer.Infos, email, password string) error
- func (u *User) UpdatePhoto(i *tracer.Infos, email, path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Db db.Database
Functions ¶
Types ¶
type Review ¶
type Review struct {
// contains filtered or unexported fields
}
func (*Review) GetReviewAverageByTeacherId ¶
func (*Review) GetReviewsByTeacherId ¶
type Student ¶
type Student struct {
// contains filtered or unexported fields
}
func NewStudent ¶
func NewStudent() *Student
type Teacher ¶
type Teacher struct {
// contains filtered or unexported fields
}
func NewTeacher ¶
func NewTeacher() *Teacher
func (*Teacher) GetNextPageTeacher ¶
func (*Teacher) GetTeacherById ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func (*User) ChangePassword ¶
func (*User) GetUserByEmail ¶
func (*User) GetUserByNick ¶
func (*User) SaveProfile ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.