package
0.0.0-20230618153625-836670f083e3
Repository: https://github.com/uclaacm/teach-la-go-backend.git
Documentation: pkg.go.dev

# Functions

defaultData is the factory function for constructing default UserData structs and its associated Programs.
defaultProgram returns a Program struct initialized to default values for a given Language.
Open returns a pointer to a new database client based on JSON credentials given by the environment variable.
OpenFromJSON returns a pointer to a new database client based on a JSON file given by the provided path.
Creates a new MockDB.

# Constants

classesAliasPath describes the path to the collection with 3 word id => hash mapping for classes.
DefaultEnvVar describes the default environment variable used to open a connection to the database.
the number of program thumbnails available to choose from.

# Variables

No description provided by the author

# Structs

Class is a struct representation of a class document.
No description provided by the author
DB implements the TLADB interface on a Firestore database.
DBContext describes the basic echo context required by handlers.
No description provided by the author
No description provided by the author
Program is a representation of a program document.
Session describes a collaborative coding environment.
Shard class Currently all it does is store the number of shards.
User is a struct representation of a user document.

# Interfaces

TLADB describes the basic set of operations required by backend handlers.