Documentation
¶
Index ¶
- func AddLesson(Lesson Lesson) error
- func AddStudent(student Student) error
- func AddTeacher(teacher Teacher) error
- func DeleteLesson(c echo.Context) error
- func DeleteLessonByID(id string) error
- func DeleteStudent(c echo.Context) error
- func DeleteStudentByID(id string) error
- func DeleteTeacher(c echo.Context) error
- func DeleteTeacherByIDFromDB(id string) error
- func GetAllLesson(c echo.Context) error
- func GetAllStudent(c echo.Context) error
- func GetAllTeachers(c echo.Context) error
- func GetApisList(c echo.Context) error
- func GetLessonByID(c echo.Context) error
- func GetLessonByStudentID(c echo.Context) error
- func GetLessonByTeacherID(c echo.Context) error
- func GetStudentByID(c echo.Context) error
- func GetTeacherByID(c echo.Context) error
- func PocketbaseInit()
- func PostLesson(c echo.Context) error
- func PostStudent(c echo.Context) error
- func PostTeacher(c echo.Context) error
- func UpdateLesson(c echo.Context) error
- func UpdateLessonByID(id string, newLesson Lesson) error
- func UpdateStudent(c echo.Context) error
- func UpdateStudentByID(id string, student Student) error
- func UpdateTeacher(c echo.Context) error
- func UpdateTeacherByIDFromDB(id string, teacher Teacher) error
- type Lesson
- type Student
- type Teacher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStudent ¶
func AddTeacher ¶
func DeleteLesson ¶
func DeleteLessonByID ¶
func DeleteStudent ¶
func DeleteStudentByID ¶
func DeleteTeacher ¶
func DeleteTeacherByIDFromDB ¶
func GetAllLesson ¶
func GetAllStudent ¶
func GetAllTeachers ¶
func GetApisList ¶
func GetLessonByID ¶
func GetLessonByStudentID ¶
func GetLessonByTeacherID ¶
func GetStudentByID ¶
func GetTeacherByID ¶
func PocketbaseInit ¶
func PocketbaseInit()
func PostLesson ¶
func PostStudent ¶
func PostTeacher ¶
func UpdateLesson ¶
func UpdateLessonByID ¶
func UpdateStudent ¶
func UpdateStudentByID ¶
func UpdateTeacher ¶
func UpdateTeacherByIDFromDB ¶
Types ¶
type Lesson ¶
type Lesson struct {
Id string `json:"id" db:"id"`
Subject string `json:"subject" db:"Subject"`
TeacherId string `json:"TeacherId" db:"TeacherId"`
StudentId string `json:"StudentId" db:"StudentId"`
Place string `json:"Place" db:"Place"`
Date string `json:"Date" db:"Date"`
DataStart time.Time `json:"dataStart" db:"dataStart"`
DataEnd time.Time `json:"dataEnd" db:"dataEnd"`
}
func FindAllLesson ¶
func FindAllLesson() []Lesson
func FindLessonByStudentID ¶
func FindLessonByTeacherID ¶
type Student ¶
type Student struct {
Id string `json:"id" db:"id"`
Name string `json:"Name" db:"Name"`
Street string `json:"Street" db:"Street"`
}
func FindAllStudents ¶
func FindAllStudents() []Student
type Teacher ¶
type Teacher struct {
Id string `json:"id" db:"id"`
Name string `json:"Name" db:"Name"`
Street string `json:"Street" db:"Street"` // optional
}
func FindLessonByID ¶
func FindStudentByID ¶
func GetAllTeachersFromDB ¶
func GetAllTeachersFromDB() []Teacher
func GetTeacherByIDFromDB ¶
Click to show internal directories.
Click to hide internal directories.