Back to godoc.org

Package handler

v0.0.0-...-bd79b31
Latest Go to latest

The latest major version is .

Published: Dec 2, 2019 | License: MIT | Module: github.com/impal-lms/lms-backend

Index

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"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier