grpc

package
v0.0.0-...-654e1bf Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTokenMetadataName         = "OJS_AUTH"
	GRPCGatewayCookieMetadataName = "grpcgateway-cookie"
)

Variables

Functions

func NewHandler

func NewHandler(
	accountLogic logic.AccountLogic,
	problemLogic logic.ProblemLogic,
	submissionLogic logic.SubmissionLogic,
	testCaseLogic logic.TestCaseLogic,
) ojs.OjsServiceServer

Types

type Handler

type Handler struct {
	ojs.UnimplementedOjsServiceServer
	// contains filtered or unexported fields
}

func (*Handler) CreateAccount

CreateAccount implements ojs.OjsServiceServer.

func (*Handler) CreateProblem

CreateProblem implements ojs.OjsServiceServer.

func (*Handler) CreateSession

CreateSession implements ojs.OjsServiceServer.

func (*Handler) CreateSubmission

CreateSubmission implements ojs.OjsServiceServer.

func (*Handler) CreateTestCase

func (*Handler) DeleteProblem

DeleteProblem implements ojs.OjsServiceServer.

func (*Handler) DeleteSession

DeleteSession implements ojs.OjsServiceServer.

func (*Handler) DeleteTestCase

func (*Handler) GetAccount

GetAccount implements ojs.OjsServiceServer.

func (*Handler) GetAccountProblemSubmissionList

GetAccountProblemSubmissionList implements ojs.OjsServiceServer.

func (*Handler) GetAndUpdateFirstSubmittedSubmissionToExecuting

GetAndUpdateFirstSubmittedSubmissionToExecuting implements ojs.OjsServiceServer.

func (*Handler) GetProblem

func (*Handler) GetProblemList

GetProblemList implements ojs.OjsServiceServer.

func (*Handler) GetProblemSubmissionList

GetProblemSubmissionList implements ojs.OjsServiceServer.

func (*Handler) GetServerInfo

GetServerInfo implements ojs.OjsServiceServer.

func (*Handler) GetSubmission

GetSubmission implements ojs.OjsServiceServer.

func (*Handler) GetSubmissionList

GetSubmissionList implements ojs.OjsServiceServer.

func (*Handler) GetTestCase

func (*Handler) UpdateProblem

UpdateProblem implements ojs.OjsServiceServer.

func (*Handler) UpdateSetting

UpdateSetting implements ojs.OjsServiceServer.

func (*Handler) UpdateTestCase

type Server

type Server interface {
	Start(ctx context.Context) error
}

func NewServer

func NewServer(grpcConfig configs.GRPC, handler ojs.OjsServiceServer) Server

Jump to

Keyboard shortcuts

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