Documentation ¶
Overview ¶
Package server provides the back-end implementation of the kjudge app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StaticFiles ¶
func StaticFiles(c echo.Context) error
StaticFiles serves files from the source fileb0x. It filters away files that don't end with ".css", ".js" or ".map"
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server this the root entry of the server.
func (*Server) HTTPErrorHandler ¶
func (*Server) StartWithTLS ¶
StartWithTLS starts the server, also tries to get a cert from LetsEncrypt.
Directories ¶
Path | Synopsis |
---|---|
Package admin defines admin routes.
|
Package admin defines admin routes. |
Package auth implements the authentication functions for the server.
|
Package auth implements the authentication functions for the server. |
User implements a group that handle /user requests.
|
User implements a group that handle /user requests. |
Click to show internal directories.
Click to hide internal directories.