Documentation ¶
Index ¶
- Constants
- Variables
- func NewHandler(accountLogic logic.AccountLogic, problemLogic logic.ProblemLogic, ...) ojs.OjsServiceServer
- type Handler
- func (h *Handler) CreateAccount(ctx context.Context, in *ojs.CreateAccountRequest) (*ojs.CreateAccountResponse, error)
- func (h *Handler) CreateProblem(ctx context.Context, in *ojs.CreateProblemRequest) (*ojs.CreateProblemResponse, error)
- func (h *Handler) CreateSession(ctx context.Context, in *ojs.CreateSessionRequest) (*ojs.CreateSessionResponse, error)
- func (h *Handler) CreateSubmission(ctx context.Context, in *ojs.CreateSubmissionRequest) (*ojs.CreateSubmissionResponse, error)
- func (h *Handler) CreateTestCase(ctx context.Context, in *ojs.CreateTestCaseRequest) (*ojs.CreateTestCaseResponse, error)
- func (h *Handler) DeleteProblem(ctx context.Context, in *ojs.DeleteProblemRequest) (*ojs.DeleteProblemResponse, error)
- func (h *Handler) DeleteSession(ctx context.Context, in *ojs.DeleteSessionRequest) (*ojs.DeleteSessionResponse, error)
- func (h *Handler) DeleteTestCase(ctx context.Context, in *ojs.DeleteTestCaseRequest) (*ojs.DeleteTestCaseResponse, error)
- func (h *Handler) GetAccount(ctx context.Context, in *ojs.GetAccountRequest) (*ojs.GetAccountResponse, error)
- func (h *Handler) GetAccountProblemSubmissionList(ctx context.Context, in *ojs.GetAccountProblemSubmissionListRequest) (*ojs.GetAccountProblemSubmissionListResponse, error)
- func (h *Handler) GetAndUpdateFirstSubmittedSubmissionToExecuting(context.Context, *ojs.GetAndUpdateFirstSubmittedSubmissionToExecutingRequest) (*ojs.GetAndUpdateFirstSubmittedSubmissionToExecutingResponse, error)
- func (h *Handler) GetProblem(ctx context.Context, in *ojs.GetProblemRequest) (*ojs.GetProblemResponse, error)
- func (h *Handler) GetProblemList(ctx context.Context, in *ojs.GetProblemListRequest) (*ojs.GetProblemListResponse, error)
- func (h *Handler) GetProblemSubmissionList(ctx context.Context, in *ojs.GetProblemSubmissionListRequest) (*ojs.GetProblemSubmissionListResponse, error)
- func (h *Handler) GetProblemTestCaseList(ctx context.Context, in *ojs.GetProblemTestCaseListRequest) (*ojs.GetProblemTestCaseListResponse, error)
- func (h *Handler) GetServerInfo(context.Context, *ojs.GetServerInfoRequest) (*ojs.GetServerInfoResponse, error)
- func (h *Handler) GetSubmission(ctx context.Context, in *ojs.GetSubmissionRequest) (*ojs.GetSubmissionResponse, error)
- func (h *Handler) GetSubmissionList(ctx context.Context, in *ojs.GetSubmissionListRequest) (*ojs.GetSubmissionListResponse, error)
- func (h *Handler) GetTestCase(ctx context.Context, in *ojs.GetTestCaseRequest) (*ojs.GetTestCaseResponse, error)
- func (h *Handler) UpdateProblem(ctx context.Context, in *ojs.UpdateProblemRequest) (*ojs.UpdateProblemResponse, error)
- func (h *Handler) UpdateSetting(context.Context, *ojs.UpdateSettingRequest) (*ojs.UpdateSettingResponse, error)
- func (h *Handler) UpdateTestCase(ctx context.Context, in *ojs.UpdateTestCaseRequest) (*ojs.UpdateTestCaseResponse, error)
- type Server
Constants ¶
const ( AuthTokenMetadataName = "OJS_AUTH" GRPCGatewayCookieMetadataName = "grpcgateway-cookie" )
Variables ¶
var WireSet = wire.NewSet( NewHandler, NewServer, )
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 ¶
func (h *Handler) CreateAccount(ctx context.Context, in *ojs.CreateAccountRequest) (*ojs.CreateAccountResponse, error)
CreateAccount implements ojs.OjsServiceServer.
func (*Handler) CreateProblem ¶
func (h *Handler) CreateProblem(ctx context.Context, in *ojs.CreateProblemRequest) (*ojs.CreateProblemResponse, error)
CreateProblem implements ojs.OjsServiceServer.
func (*Handler) CreateSession ¶
func (h *Handler) CreateSession(ctx context.Context, in *ojs.CreateSessionRequest) (*ojs.CreateSessionResponse, error)
CreateSession implements ojs.OjsServiceServer.
func (*Handler) CreateSubmission ¶
func (h *Handler) CreateSubmission(ctx context.Context, in *ojs.CreateSubmissionRequest) (*ojs.CreateSubmissionResponse, error)
CreateSubmission implements ojs.OjsServiceServer.
func (*Handler) CreateTestCase ¶
func (h *Handler) CreateTestCase(ctx context.Context, in *ojs.CreateTestCaseRequest) (*ojs.CreateTestCaseResponse, error)
func (*Handler) DeleteProblem ¶
func (h *Handler) DeleteProblem(ctx context.Context, in *ojs.DeleteProblemRequest) (*ojs.DeleteProblemResponse, error)
DeleteProblem implements ojs.OjsServiceServer.
func (*Handler) DeleteSession ¶
func (h *Handler) DeleteSession(ctx context.Context, in *ojs.DeleteSessionRequest) (*ojs.DeleteSessionResponse, error)
DeleteSession implements ojs.OjsServiceServer.
func (*Handler) DeleteTestCase ¶
func (h *Handler) DeleteTestCase(ctx context.Context, in *ojs.DeleteTestCaseRequest) (*ojs.DeleteTestCaseResponse, error)
func (*Handler) GetAccount ¶
func (h *Handler) GetAccount(ctx context.Context, in *ojs.GetAccountRequest) (*ojs.GetAccountResponse, error)
GetAccount implements ojs.OjsServiceServer.
func (*Handler) GetAccountProblemSubmissionList ¶
func (h *Handler) GetAccountProblemSubmissionList(ctx context.Context, in *ojs.GetAccountProblemSubmissionListRequest) (*ojs.GetAccountProblemSubmissionListResponse, error)
GetAccountProblemSubmissionList implements ojs.OjsServiceServer.
func (*Handler) GetAndUpdateFirstSubmittedSubmissionToExecuting ¶
func (h *Handler) GetAndUpdateFirstSubmittedSubmissionToExecuting(context.Context, *ojs.GetAndUpdateFirstSubmittedSubmissionToExecutingRequest) (*ojs.GetAndUpdateFirstSubmittedSubmissionToExecutingResponse, error)
GetAndUpdateFirstSubmittedSubmissionToExecuting implements ojs.OjsServiceServer.
func (*Handler) GetProblem ¶
func (h *Handler) GetProblem(ctx context.Context, in *ojs.GetProblemRequest) (*ojs.GetProblemResponse, error)
func (*Handler) GetProblemList ¶
func (h *Handler) GetProblemList(ctx context.Context, in *ojs.GetProblemListRequest) (*ojs.GetProblemListResponse, error)
GetProblemList implements ojs.OjsServiceServer.
func (*Handler) GetProblemSubmissionList ¶
func (h *Handler) GetProblemSubmissionList(ctx context.Context, in *ojs.GetProblemSubmissionListRequest) (*ojs.GetProblemSubmissionListResponse, error)
GetProblemSubmissionList implements ojs.OjsServiceServer.
func (*Handler) GetProblemTestCaseList ¶
func (h *Handler) GetProblemTestCaseList(ctx context.Context, in *ojs.GetProblemTestCaseListRequest) (*ojs.GetProblemTestCaseListResponse, error)
func (*Handler) GetServerInfo ¶
func (h *Handler) GetServerInfo(context.Context, *ojs.GetServerInfoRequest) (*ojs.GetServerInfoResponse, error)
GetServerInfo implements ojs.OjsServiceServer.
func (*Handler) GetSubmission ¶
func (h *Handler) GetSubmission(ctx context.Context, in *ojs.GetSubmissionRequest) (*ojs.GetSubmissionResponse, error)
GetSubmission implements ojs.OjsServiceServer.
func (*Handler) GetSubmissionList ¶
func (h *Handler) GetSubmissionList(ctx context.Context, in *ojs.GetSubmissionListRequest) (*ojs.GetSubmissionListResponse, error)
GetSubmissionList implements ojs.OjsServiceServer.
func (*Handler) GetTestCase ¶
func (h *Handler) GetTestCase(ctx context.Context, in *ojs.GetTestCaseRequest) (*ojs.GetTestCaseResponse, error)
func (*Handler) UpdateProblem ¶
func (h *Handler) UpdateProblem(ctx context.Context, in *ojs.UpdateProblemRequest) (*ojs.UpdateProblemResponse, error)
UpdateProblem implements ojs.OjsServiceServer.
func (*Handler) UpdateSetting ¶
func (h *Handler) UpdateSetting(context.Context, *ojs.UpdateSettingRequest) (*ojs.UpdateSettingResponse, error)
UpdateSetting implements ojs.OjsServiceServer.
func (*Handler) UpdateTestCase ¶
func (h *Handler) UpdateTestCase(ctx context.Context, in *ojs.UpdateTestCaseRequest) (*ojs.UpdateTestCaseResponse, error)