controller

package
v0.9.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrForeignUser = errors.New("foreign user")
)

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db *gorm.DB, ej *ejudge.EjClient, cfg *config.ServerConfig) *Server

func (*Server) AdminGET

func (s *Server) AdminGET(c *gin.Context)

func (*Server) AdminPOST

func (s *Server) AdminPOST(c *gin.Context)

func (*Server) CodereviewGET

func (s *Server) CodereviewGET(c *gin.Context)

func (*Server) CodereviewPOST

func (s *Server) CodereviewPOST(c *gin.Context)

func (*Server) IndexGET

func (s *Server) IndexGET(c *gin.Context)

func (*Server) IndexPOST

func (s *Server) IndexPOST(c *gin.Context)

func (*Server) InitRouter

func (s *Server) InitRouter() *gin.Engine

func (*Server) LoginGET

func (s *Server) LoginGET(c *gin.Context)

func (*Server) LoginPOST

func (s *Server) LoginPOST(c *gin.Context)

func (*Server) LogoutPOST

func (s *Server) LogoutPOST(c *gin.Context)

func (*Server) ManageFlipPOST

func (s *Server) ManageFlipPOST(c *gin.Context)

func (*Server) ManageGET

func (s *Server) ManageGET(c *gin.Context)

func (*Server) ManagePOST

func (s *Server) ManagePOST(c *gin.Context)

TODO: add check for judge credentials. TODO: add check for acm format.

func (*Server) Poll

func (s *Server) Poll() error

func (*Server) ProfileGET

func (s *Server) ProfileGET(c *gin.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL