Added documentation to functions and basic JWT generation

This commit is contained in:
2025-02-09 00:48:30 +11:00
parent 597fc6f072
commit 25868becf3
29 changed files with 254 additions and 58 deletions

15
tester.go Normal file
View File

@@ -0,0 +1,15 @@
package main
import (
"database/sql"
"net/http"
"projectreshoot/server"
)
// This function will only be called if the --test commandline flag is set.
// After the function finishes the application will close.
// Running command `make test` will run the test using port 3232 to avoid
// conflicts on the default 3333. Useful for testing things out during dev
func test(config *server.Config, conn *sql.DB, srv *http.Server) {
}