handler

package
v0.0.0-...-bd79b31 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Services services.Services
}

func NewHandler

func NewHandler(services services.Services) *Handler

func (*Handler) AddRoomToClassroom

func (h *Handler) AddRoomToClassroom(ctx echo.Context) error

func (*Handler) AddStudentToClassroom

func (h *Handler) AddStudentToClassroom(ctx echo.Context) error

func (*Handler) ChangePassword

func (h *Handler) ChangePassword(ctx echo.Context) error

func (*Handler) ChangeRole

func (h *Handler) ChangeRole(ctx echo.Context) error

func (*Handler) CreateClassroom

func (h *Handler) CreateClassroom(ctx echo.Context) error

func (*Handler) CreateMaterial

func (h *Handler) CreateMaterial(ctx echo.Context) error

func (*Handler) CreateSubmission

func (h *Handler) CreateSubmission(ctx echo.Context) error

func (*Handler) CreateTask

func (h *Handler) CreateTask(ctx echo.Context) error

func (*Handler) CreateUser

func (h *Handler) CreateUser(ctx echo.Context) error

func (*Handler) DeleteClassroomById

func (h *Handler) DeleteClassroomById(ctx echo.Context) error

func (*Handler) DeleteMaterialById

func (h *Handler) DeleteMaterialById(ctx echo.Context) error

func (*Handler) DeleteRoomFromClassroom

func (h *Handler) DeleteRoomFromClassroom(ctx echo.Context) error

func (*Handler) DeleteStudentFromClassroom

func (h *Handler) DeleteStudentFromClassroom(ctx echo.Context) error

func (*Handler) DeleteSubmissionById

func (h *Handler) DeleteSubmissionById(ctx echo.Context) error

func (*Handler) DeleteTaskById

func (h *Handler) DeleteTaskById(ctx echo.Context) error

func (*Handler) DeleteUserById

func (h *Handler) DeleteUserById(ctx echo.Context) error

func (*Handler) FileUpload

func (h *Handler) FileUpload(ctx echo.Context) error

func (*Handler) GetAllClassroom

func (h *Handler) GetAllClassroom(ctx echo.Context) error

func (*Handler) GetAllClassroomOfUser

func (h *Handler) GetAllClassroomOfUser(ctx echo.Context) error

func (*Handler) GetAllMaterial

func (h *Handler) GetAllMaterial(ctx echo.Context) error

func (*Handler) GetAllSubmission

func (h *Handler) GetAllSubmission(ctx echo.Context) error

func (*Handler) GetAllTask

func (h *Handler) GetAllTask(ctx echo.Context) error

func (*Handler) GetAllUser

func (h *Handler) GetAllUser(ctx echo.Context) error

func (*Handler) GetClassroomByID

func (h *Handler) GetClassroomByID(ctx echo.Context) error

func (*Handler) GetMaterialByID

func (h *Handler) GetMaterialByID(ctx echo.Context) error

func (*Handler) GetSubmissionByID

func (h *Handler) GetSubmissionByID(ctx echo.Context) error

func (*Handler) GetTaskByID

func (h *Handler) GetTaskByID(ctx echo.Context) error

func (*Handler) GetUserByID

func (h *Handler) GetUserByID(ctx echo.Context) error

func (*Handler) HelloWorld

func (h *Handler) HelloWorld(ctx echo.Context) error

func (*Handler) Login

func (h *Handler) Login(ctx echo.Context) error

func (*Handler) Register

func (h *Handler) Register(ctx echo.Context) error

func (*Handler) UpdateClassroom

func (h *Handler) UpdateClassroom(ctx echo.Context) error

func (*Handler) UpdateMaterial

func (h *Handler) UpdateMaterial(ctx echo.Context) error

func (*Handler) UpdateSubmission

func (h *Handler) UpdateSubmission(ctx echo.Context) error

func (*Handler) UpdateTask

func (h *Handler) UpdateTask(ctx echo.Context) error

func (*Handler) UpdateUser

func (h *Handler) UpdateUser(ctx echo.Context) error

type Response

type Response struct {
	Status int         `json:"status"`
	Data   interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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