repository

package
v0.0.0-...-533f09b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Start

func Start()

Types

type Mock

type Mock struct {
}

func (Mock) Connect

func (m Mock) Connect(config db.Config)

func (Mock) Fetch

func (m Mock) Fetch(infos *tracer.Infos, s string, i ...interface{}) ([]map[string]interface{}, error)

func (Mock) Get

func (m Mock) Get(infos *tracer.Infos, s string, i ...interface{}) (map[string]interface{}, error)

func (Mock) Insert

func (m Mock) Insert(infos *tracer.Infos, s string, i ...interface{}) (sql.Result, error)

func (Mock) Update

func (m Mock) Update(infos *tracer.Infos, s string, i ...interface{}) (sql.Result, error)

type Review

type Review struct {
	// contains filtered or unexported fields
}

func NewReview

func NewReview() *Review

func (*Review) GetReviewAverageByTeacherId

func (r *Review) GetReviewAverageByTeacherId(i *tracer.Infos, teacherId string) (map[string]interface{}, error)

func (*Review) GetReviewsByTeacherId

func (r *Review) GetReviewsByTeacherId(i *tracer.Infos, teacherId string) ([]map[string]interface{}, error)

func (*Review) SaveReview

func (r *Review) SaveReview(i *tracer.Infos, comment string, value float64, student, teacher int) error

type Student

type Student struct {
	// contains filtered or unexported fields
}

func NewStudent

func NewStudent() *Student

func (*Student) Create

func (s *Student) Create(i *tracer.Infos, userEmail string) error

type Teacher

type Teacher struct {
	// contains filtered or unexported fields
}

func NewTeacher

func NewTeacher() *Teacher

func (*Teacher) Create

func (t *Teacher) Create(i *tracer.Infos, email string) error

func (*Teacher) Edit

func (t *Teacher) Edit(i *tracer.Infos, email string, formation string, specialization string, time int) error

func (*Teacher) GetNextPageTeacher

func (t *Teacher) GetNextPageTeacher(i *tracer.Infos, name string) (map[string]interface{}, error)

func (*Teacher) GetTeacherById

func (t *Teacher) GetTeacherById(i *tracer.Infos, id int) (map[string]interface{}, error)

func (*Teacher) GetTeacherByPhoneticName

func (t *Teacher) GetTeacherByPhoneticName(i *tracer.Infos, name string, page int) ([]map[string]interface{}, error)

type User

type User struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser() *User

func (*User) ChangePassword

func (u *User) ChangePassword(i *tracer.Infos, email, password string) error

func (*User) Edit

func (u *User) Edit(i *tracer.Infos, email, nickname, firstName, lastName, birthDate, twitter, facebook,
	instagram, description, telephone, address string, gender int) error

func (*User) GetUserByEmail

func (u *User) GetUserByEmail(i *tracer.Infos, email string) (map[string]interface{}, error)

func (*User) GetUserByNick

func (u *User) GetUserByNick(i *tracer.Infos, nickname string) (map[string]interface{}, error)

func (*User) SaveProfile

func (u *User) SaveProfile(i *tracer.Infos, email string, register, gender int, firstName, lastName, birthDate, nickname string) error

func (*User) SaveUser

func (u *User) SaveUser(i *tracer.Infos, email, password string) error

func (*User) UpdatePhoto

func (u *User) UpdatePhoto(i *tracer.Infos, email, path string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL