uploader

package
v0.0.0-...-da5bab6 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(inDir string, replace bool)

func UploadData

func UploadData[T any](client *mongo.Client, ctx context.Context, fptr *os.File, replace bool)

Generic upload function to upload parsed JSON data to the Mongo database Make sure that the name of the file being parsed matches with the name of the collection you are uploading to! For example, your file should be named courses.json if you want to upload courses As of right now, courses, professors, and sections are available to upload.

Types

This section is empty.

Jump to

Keyboard shortcuts

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