classrooms

package
v0.0.0-...-6cc2e2a Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClassroom

func CreateClassroom(w http.ResponseWriter, r *http.Request, collection *mongo.Collection)

CreateClassroom handles the creation of a new classroom

func DeleteClassroom

func DeleteClassroom(w http.ResponseWriter, r *http.Request, collection *mongo.Collection)

DeleteClassroom handles the deletion of a classroom

func GetClassroom

func GetClassroom(w http.ResponseWriter, r *http.Request, collection *mongo.Collection)

func GetClassrooms

func GetClassrooms(w http.ResponseWriter, r *http.Request, collection *mongo.Collection)

func UpdateClassroom

func UpdateClassroom(w http.ResponseWriter, r *http.Request, collection *mongo.Collection)

Types

type Classroom

type Classroom struct {
	Building    string `json:"building"`
	Capacity    int    `json:"capacity"`
	Room_number string `json:"room" bson:"room"`
}

Jump to

Keyboard shortcuts

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