aboutsummaryrefslogtreecommitdiff
path: root/db.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *.go: Further wrap errorsRunxi Yu2024-10-081-1/+1
|
* err.go: Create, and unify some error definitionsRunxi Yu2024-10-081-3/+0
|
* *: Overhaul structure again and embed everythingRunxi Yu2024-10-061-0/+51
| | | | | | | | - Remove sub-Makefiles; recursive make is annoying - Just use one top-level Makefile that builds everything - Embed templates and minified static resources into the binary - Embed all compiled documentation into the binary and serve - Embed all source into the binary and serve
* *.go: Move to backendRunxi Yu2024-10-051-51/+0
| | | | And adjust Makefiles, admin handbook, and lint.sh accordingly.
* {auth,db,wsm}.go: Make 23505 (uniqueness violation) a constantRunxi Yu2024-10-011-0/+2
|
* *: Change license to AGPL-3.0-or-laterRunxi Yu2024-09-301-21/+11
|
* db.go: Fix tautological error handlingRunxi Yu2024-09-261-1/+4
| | | | | | While introducing error wrapping, I accidentally made setupDatabase() return an error even if there is no error. Now I make it actually check for an error to wrap, and return nil otherwise.
* *.go: Wrap errorsRunxi Yu2024-09-261-1/+2
|
* *.go: LintingRunxi Yu2024-09-241-3/+5
|
* *.go: Add more licensesRunxi Yu2024-09-091-0/+30
|
* *.go: Add commentsRunxi Yu2024-09-091-0/+4
|
* *: Basic authentication and templatesRunxi Yu2024-09-071-0/+19
These are imported from FBFP and slightly modified to be specific to YKPS (while not being hard to port to other environments that use APIs that use OAUTH 2.0). Some code is also simplified. Database code still needs an audit, and things are not tested yet.