web

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	config.Server
	DB *sql.DB

	ProblemStore  problems.Store
	MailService   email.Service
	PartialsStore partials.Store

	Categories          njudge.Categories
	Tags                njudge.Tags
	Problems            njudge.Problems
	Users               njudge.Users
	Submissions         njudge.Submissions
	SolvedStatusQuery   njudge.SolvedStatusQuery
	ProblemInfoQuery    njudge.ProblemInfoQuery
	ProblemQuery        njudge.ProblemQuery
	ProblemListQuery    njudge.ProblemListQuery
	SubmissionListQuery njudge.SubmissionListQuery

	RegisterService njudge.RegisterService
	SubmitService   njudge.SubmitService
	TagsService     njudge.TagsService
	// contains filtered or unexported fields
}

func (*Server) ConnectToDB

func (s *Server) ConnectToDB()

func (*Server) Run

func (s *Server) Run()

func (*Server) SetupDataAccess added in v0.3.0

func (s *Server) SetupDataAccess()

func (*Server) SetupEnvironment

func (s *Server) SetupEnvironment()

func (*Server) StartBackgroundJobs

func (s *Server) StartBackgroundJobs()

func (*Server) Submit

func (s *Server) Submit(uid int, problemset, problem, language string, source []byte) (int, error)

Jump to

Keyboard shortcuts

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