package
0.3.0
Repository: https://github.com/squwid/bytegolf.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BestSubmission takes a bgid and hole and returns the user's best submission for that given hole.
No description provided by the author
GetBestSubmissionHandler will check if a user is logged in, then grab their best submission using a short submission.
GetSubmission gets a single submission if the users BGID is the same as the submission requested.
Possible query strings: "hole": ID of the hole *REQUIRED* "limit": Limit of entry numbers.
LeaderboardQuery is a wrapper query function to list leaderboard submissions for a given hole.
ListSubmissions needs to be able to list submissions for ONLY the logged in user.
No description provided by the author
SubmissionsQuery is a query wrapper to add results to a cache for when a GET is called at a later time TODO: add a cache.

# Structs

Entry
No description provided by the author
FullSubmission extends the ShortSubmission with the Script and TestCases.
ShortSubmission is the short submission for the frontend to list all submissions, correct or incorrect without the entire script.
SubmissionDB is complete submission object that gets stored in the database.
SubmissionTest is the test output that gets stored in the Tests field under SubmissionDB.

# Type aliases

No description provided by the author