app

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	NewHost,
	NewWorker,
)

Functions

This section is empty.

Types

type App

type App interface {
	Start() error
}

type Host

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

func NewHost

func NewHost(
	createFirstAccountsJob jobs.CreateFirstAccounts,
	scheduleSubmittedExecutingSubmissionToJudgeJob jobs.ScheduleSubmittedExecutingSubmissionToJudge,
	revertExecutingSubmissionsJob jobs.RevertExecutingSubmissions,
	httpServer http.Server,
	logger *zap.Logger,
	cron *cron.Cron,
	logicConfig configs.Logic,
) *Host

func (Host) Start

func (c Host) Start() error

type Worker

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

func NewWorker

func NewWorker(
	scheduleSubmittedExecutingSubmissionToJudgeJob jobs.ScheduleSubmittedExecutingSubmissionToJudge,
	syncProblemsJob jobs.SyncProblems,
	judgeDistributedFirstSubmittedSubmissionJob jobs.JudgeDistributedFirstSubmittedSubmission,
	logger *zap.Logger,
	cron *cron.Cron,
	logicConfig configs.Logic,
) *Worker

func (Worker) Start

func (c Worker) Start() error

Jump to

Keyboard shortcuts

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