Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
- func RegisterBackendServiceServer(s grpc.ServiceRegistrar, srv BackendServiceServer)
- func RegisterHealthcheckServiceServer(s grpc.ServiceRegistrar, srv HealthcheckServiceServer)
- type AdminServiceClient
- type AdminServiceServer
- type BackendServiceClient
- type BackendServiceServer
- type BackendService_GetSubmitClient
- type BackendService_GetSubmitServer
- type Contest
- func (*Contest) Descriptor() ([]byte, []int)deprecated
- func (x *Contest) GetEndAt() *timestamppb.Timestamp
- func (x *Contest) GetId() int32
- func (x *Contest) GetSlug() string
- func (x *Contest) GetStartAt() *timestamppb.Timestamp
- func (x *Contest) GetSubmitLimit() int32
- func (x *Contest) GetTagSelectionLogic() TagSelectionLogicType
- func (x *Contest) GetTitle() string
- func (x *Contest) GetValidator() Validator
- func (*Contest) ProtoMessage()
- func (x *Contest) ProtoReflect() protoreflect.Message
- func (x *Contest) Reset()
- func (x *Contest) String() string
- type CreateContestRequest
- func (*CreateContestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateContestRequest) GetAuto() *TagSelectionLogicAuto
- func (x *CreateContestRequest) GetEndAt() *timestamppb.Timestamp
- func (x *CreateContestRequest) GetManual() *TagSelectionLogicManual
- func (x *CreateContestRequest) GetSlug() string
- func (x *CreateContestRequest) GetStartAt() *timestamppb.Timestamp
- func (x *CreateContestRequest) GetSubmitLimit() int32
- func (m *CreateContestRequest) GetTagSelection() isCreateContestRequest_TagSelection
- func (x *CreateContestRequest) GetTimeLimitPerTask() int32
- func (x *CreateContestRequest) GetTitle() string
- func (x *CreateContestRequest) GetValidator() Validator
- func (*CreateContestRequest) ProtoMessage()
- func (x *CreateContestRequest) ProtoReflect() protoreflect.Message
- func (x *CreateContestRequest) Reset()
- func (x *CreateContestRequest) String() string
- type CreateContestRequest_Auto
- type CreateContestRequest_Manual
- type CreateContestResponse
- func (*CreateContestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateContestResponse) GetContest() *Contest
- func (*CreateContestResponse) ProtoMessage()
- func (x *CreateContestResponse) ProtoReflect() protoreflect.Message
- func (x *CreateContestResponse) Reset()
- func (x *CreateContestResponse) String() string
- type CreateGroupsRequest
- func (*CreateGroupsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupsRequest) GetGroups() []*CreateGroupsRequest_CreateGroupsGroup
- func (*CreateGroupsRequest) ProtoMessage()
- func (x *CreateGroupsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupsRequest) Reset()
- func (x *CreateGroupsRequest) String() string
- type CreateGroupsRequest_CreateGroupsGroup
- func (*CreateGroupsRequest_CreateGroupsGroup) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupsRequest_CreateGroupsGroup) GetName() string
- func (x *CreateGroupsRequest_CreateGroupsGroup) GetPassword() string
- func (x *CreateGroupsRequest_CreateGroupsGroup) GetRole() Role
- func (x *CreateGroupsRequest_CreateGroupsGroup) GetYear() int32
- func (*CreateGroupsRequest_CreateGroupsGroup) ProtoMessage()
- func (x *CreateGroupsRequest_CreateGroupsGroup) ProtoReflect() protoreflect.Message
- func (x *CreateGroupsRequest_CreateGroupsGroup) Reset()
- func (x *CreateGroupsRequest_CreateGroupsGroup) String() string
- type CreateGroupsResponse
- func (*CreateGroupsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupsResponse) GetGroups() []*Group
- func (*CreateGroupsResponse) ProtoMessage()
- func (x *CreateGroupsResponse) ProtoReflect() protoreflect.Message
- func (x *CreateGroupsResponse) Reset()
- func (x *CreateGroupsResponse) String() string
- type GetContestRequest
- func (*GetContestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContestRequest) GetContestSlug() string
- func (*GetContestRequest) ProtoMessage()
- func (x *GetContestRequest) ProtoReflect() protoreflect.Message
- func (x *GetContestRequest) Reset()
- func (x *GetContestRequest) String() string
- type GetContestResponse
- func (*GetContestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContestResponse) GetContest() *Contest
- func (*GetContestResponse) ProtoMessage()
- func (x *GetContestResponse) ProtoReflect() protoreflect.Message
- func (x *GetContestResponse) Reset()
- func (x *GetContestResponse) String() string
- type GetContestantInfoRequest
- func (*GetContestantInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContestantInfoRequest) GetContestSlug() string
- func (*GetContestantInfoRequest) ProtoMessage()
- func (x *GetContestantInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetContestantInfoRequest) Reset()
- func (x *GetContestantInfoRequest) String() string
- type GetContestantInfoResponse
- func (*GetContestantInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetContestantInfoResponse) GetLatestSubmit() *Submit
- func (x *GetContestantInfoResponse) GetRemainingSubmitCount() int32
- func (*GetContestantInfoResponse) ProtoMessage()
- func (x *GetContestantInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetContestantInfoResponse) Reset()
- func (x *GetContestantInfoResponse) String() string
- type GetRankingRequest
- func (*GetRankingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankingRequest) GetContainGuest() bool
- func (x *GetRankingRequest) GetContestSlug() string
- func (*GetRankingRequest) ProtoMessage()
- func (x *GetRankingRequest) ProtoReflect() protoreflect.Message
- func (x *GetRankingRequest) Reset()
- func (x *GetRankingRequest) String() string
- type GetRankingResponse
- func (*GetRankingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankingResponse) GetRecords() []*GetRankingResponse_Record
- func (*GetRankingResponse) ProtoMessage()
- func (x *GetRankingResponse) ProtoReflect() protoreflect.Message
- func (x *GetRankingResponse) Reset()
- func (x *GetRankingResponse) String() string
- type GetRankingResponse_Record
- func (*GetRankingResponse_Record) Descriptor() ([]byte, []int)deprecated
- func (x *GetRankingResponse_Record) GetGroup() *Group
- func (x *GetRankingResponse_Record) GetRank() int32
- func (x *GetRankingResponse_Record) GetScore() int32
- func (*GetRankingResponse_Record) ProtoMessage()
- func (x *GetRankingResponse_Record) ProtoReflect() protoreflect.Message
- func (x *GetRankingResponse_Record) Reset()
- func (x *GetRankingResponse_Record) String() string
- type GetSubmitRequest
- type GetSubmitResponse
- type Group
- type HealthcheckServiceClient
- type HealthcheckServiceServer
- type HealthcheckService_PingServerSideStreamingClient
- type HealthcheckService_PingServerSideStreamingServer
- type Language
- type ListContestsRequest
- type ListContestsResponse
- func (*ListContestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListContestsResponse) GetContests() []*Contest
- func (*ListContestsResponse) ProtoMessage()
- func (x *ListContestsResponse) ProtoReflect() protoreflect.Message
- func (x *ListContestsResponse) Reset()
- func (x *ListContestsResponse) String() string
- type ListSubmitsRequest
- func (*ListSubmitsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSubmitsRequest) GetContainsGuest() bool
- func (x *ListSubmitsRequest) GetContestSlug() string
- func (x *ListSubmitsRequest) GetGroupName() string
- func (x *ListSubmitsRequest) GetIsDesc() bool
- func (x *ListSubmitsRequest) GetPage() int32
- func (x *ListSubmitsRequest) GetSortBy() ListSubmitsRequest_SortBy
- func (x *ListSubmitsRequest) GetStatus() Status
- func (*ListSubmitsRequest) ProtoMessage()
- func (x *ListSubmitsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSubmitsRequest) Reset()
- func (x *ListSubmitsRequest) String() string
- type ListSubmitsRequest_SortBy
- func (ListSubmitsRequest_SortBy) Descriptor() protoreflect.EnumDescriptor
- func (x ListSubmitsRequest_SortBy) Enum() *ListSubmitsRequest_SortBy
- func (ListSubmitsRequest_SortBy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListSubmitsRequest_SortBy) Number() protoreflect.EnumNumber
- func (x ListSubmitsRequest_SortBy) String() string
- func (ListSubmitsRequest_SortBy) Type() protoreflect.EnumType
- type ListSubmitsResponse
- func (*ListSubmitsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSubmitsResponse) GetPage() int32
- func (x *ListSubmitsResponse) GetSubmits() []*Submit
- func (x *ListSubmitsResponse) GetTotalPages() int32
- func (*ListSubmitsResponse) ProtoMessage()
- func (x *ListSubmitsResponse) ProtoReflect() protoreflect.Message
- func (x *ListSubmitsResponse) Reset()
- func (x *ListSubmitsResponse) String() string
- type PingServerSideStreamingRequest
- func (*PingServerSideStreamingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PingServerSideStreamingRequest) GetPing() string
- func (*PingServerSideStreamingRequest) ProtoMessage()
- func (x *PingServerSideStreamingRequest) ProtoReflect() protoreflect.Message
- func (x *PingServerSideStreamingRequest) Reset()
- func (x *PingServerSideStreamingRequest) String() string
- type PingServerSideStreamingResponse
- func (*PingServerSideStreamingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PingServerSideStreamingResponse) GetPong() string
- func (*PingServerSideStreamingResponse) ProtoMessage()
- func (x *PingServerSideStreamingResponse) ProtoReflect() protoreflect.Message
- func (x *PingServerSideStreamingResponse) Reset()
- func (x *PingServerSideStreamingResponse) String() string
- type PingUnaryRequest
- type PingUnaryResponse
- type PostLoginRequest
- func (*PostLoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostLoginRequest) GetId() string
- func (x *PostLoginRequest) GetPassword() string
- func (*PostLoginRequest) ProtoMessage()
- func (x *PostLoginRequest) ProtoReflect() protoreflect.Message
- func (x *PostLoginRequest) Reset()
- func (x *PostLoginRequest) String() string
- type PostLoginResponse
- func (*PostLoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostLoginResponse) GetGroup() *Group
- func (x *PostLoginResponse) GetToken() string
- func (*PostLoginResponse) ProtoMessage()
- func (x *PostLoginResponse) ProtoReflect() protoreflect.Message
- func (x *PostLoginResponse) Reset()
- func (x *PostLoginResponse) String() string
- type PostSubmitRequest
- func (*PostSubmitRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostSubmitRequest) GetContestSlug() string
- func (x *PostSubmitRequest) GetUrl() string
- func (*PostSubmitRequest) ProtoMessage()
- func (x *PostSubmitRequest) ProtoReflect() protoreflect.Message
- func (x *PostSubmitRequest) Reset()
- func (x *PostSubmitRequest) String() string
- type PostSubmitResponse
- func (*PostSubmitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PostSubmitResponse) GetContestSlug() string
- func (x *PostSubmitResponse) GetId() int32
- func (x *PostSubmitResponse) GetSubmitedAt() *timestamppb.Timestamp
- func (x *PostSubmitResponse) GetUrl() string
- func (*PostSubmitResponse) ProtoMessage()
- func (x *PostSubmitResponse) ProtoReflect() protoreflect.Message
- func (x *PostSubmitResponse) Reset()
- func (x *PostSubmitResponse) String() string
- type Role
- type Status
- type Submit
- func (*Submit) Descriptor() ([]byte, []int)deprecated
- func (x *Submit) GetCompletedAt() *timestamppb.Timestamp
- func (x *Submit) GetErrorMessage() string
- func (x *Submit) GetGroupName() string
- func (x *Submit) GetId() int32
- func (x *Submit) GetLanguage() Language
- func (x *Submit) GetScore() int32
- func (x *Submit) GetStatus() Status
- func (x *Submit) GetSubmitedAt() *timestamppb.Timestamp
- func (x *Submit) GetTagCount() int32
- func (x *Submit) GetTaskResults() []*TaskResult
- func (*Submit) ProtoMessage()
- func (x *Submit) ProtoReflect() protoreflect.Message
- func (x *Submit) Reset()
- func (x *Submit) String() string
- type TagSelectionLogicAuto
- func (*TagSelectionLogicAuto) Descriptor() ([]byte, []int)deprecated
- func (x *TagSelectionLogicAuto) GetTags() *Tags
- func (x *TagSelectionLogicAuto) GetType() TagSelectionLogicType
- func (*TagSelectionLogicAuto) ProtoMessage()
- func (x *TagSelectionLogicAuto) ProtoReflect() protoreflect.Message
- func (x *TagSelectionLogicAuto) Reset()
- func (x *TagSelectionLogicAuto) String() string
- type TagSelectionLogicManual
- func (*TagSelectionLogicManual) Descriptor() ([]byte, []int)deprecated
- func (x *TagSelectionLogicManual) GetTagsList() []*Tags
- func (x *TagSelectionLogicManual) GetType() TagSelectionLogicType
- func (*TagSelectionLogicManual) ProtoMessage()
- func (x *TagSelectionLogicManual) ProtoReflect() protoreflect.Message
- func (x *TagSelectionLogicManual) Reset()
- func (x *TagSelectionLogicManual) String() string
- type TagSelectionLogicType
- func (TagSelectionLogicType) Descriptor() protoreflect.EnumDescriptor
- func (x TagSelectionLogicType) Enum() *TagSelectionLogicType
- func (TagSelectionLogicType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TagSelectionLogicType) Number() protoreflect.EnumNumber
- func (x TagSelectionLogicType) String() string
- func (TagSelectionLogicType) Type() protoreflect.EnumType
- type Tags
- type TaskResult
- func (*TaskResult) Descriptor() ([]byte, []int)deprecated
- func (x *TaskResult) GetAttemptCount() int32
- func (x *TaskResult) GetAttemptTime() int32
- func (x *TaskResult) GetCreatedAt() *timestamppb.Timestamp
- func (x *TaskResult) GetDeletedAt() *timestamppb.Timestamp
- func (x *TaskResult) GetErrorMessage() string
- func (x *TaskResult) GetId() int32
- func (x *TaskResult) GetMethod() string
- func (x *TaskResult) GetRequestBody() string
- func (x *TaskResult) GetRequestContentType() string
- func (x *TaskResult) GetRequestPerSec() int32
- func (x *TaskResult) GetResponseBody() string
- func (x *TaskResult) GetResponseCode() string
- func (x *TaskResult) GetResponseContentType() string
- func (x *TaskResult) GetStatus() Status
- func (x *TaskResult) GetThreadNum() int32
- func (x *TaskResult) GetUrl() string
- func (*TaskResult) ProtoMessage()
- func (x *TaskResult) ProtoReflect() protoreflect.Message
- func (x *TaskResult) Reset()
- func (x *TaskResult) String() string
- type UnimplementedAdminServiceServer
- func (UnimplementedAdminServiceServer) CreateContest(context.Context, *CreateContestRequest) (*CreateContestResponse, error)
- func (UnimplementedAdminServiceServer) CreateGroups(context.Context, *CreateGroupsRequest) (*CreateGroupsResponse, error)
- func (UnimplementedAdminServiceServer) UpdateContest(context.Context, *UpdateContestRequest) (*UpdateContestResponse, error)
- type UnimplementedBackendServiceServer
- func (UnimplementedBackendServiceServer) GetContest(context.Context, *GetContestRequest) (*GetContestResponse, error)
- func (UnimplementedBackendServiceServer) GetContestantInfo(context.Context, *GetContestantInfoRequest) (*GetContestantInfoResponse, error)
- func (UnimplementedBackendServiceServer) GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error)
- func (UnimplementedBackendServiceServer) GetSubmit(*GetSubmitRequest, BackendService_GetSubmitServer) error
- func (UnimplementedBackendServiceServer) ListContests(context.Context, *ListContestsRequest) (*ListContestsResponse, error)
- func (UnimplementedBackendServiceServer) ListSubmits(context.Context, *ListSubmitsRequest) (*ListSubmitsResponse, error)
- func (UnimplementedBackendServiceServer) PostLogin(context.Context, *PostLoginRequest) (*PostLoginResponse, error)
- func (UnimplementedBackendServiceServer) PostSubmit(context.Context, *PostSubmitRequest) (*PostSubmitResponse, error)
- func (UnimplementedBackendServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
- type UnimplementedHealthcheckServiceServer
- type UnsafeAdminServiceServer
- type UnsafeBackendServiceServer
- type UnsafeHealthcheckServiceServer
- type UpdateContestRequest
- func (*UpdateContestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateContestRequest) GetContestSlug() string
- func (x *UpdateContestRequest) GetEndAt() *timestamppb.Timestamp
- func (x *UpdateContestRequest) GetStartAt() *timestamppb.Timestamp
- func (x *UpdateContestRequest) GetSubmitLimit() int32
- func (x *UpdateContestRequest) GetTitle() string
- func (x *UpdateContestRequest) GetValidator() Validator
- func (*UpdateContestRequest) ProtoMessage()
- func (x *UpdateContestRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateContestRequest) Reset()
- func (x *UpdateContestRequest) String() string
- type UpdateContestResponse
- func (*UpdateContestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateContestResponse) GetContest() *Contest
- func (*UpdateContestResponse) ProtoMessage()
- func (x *UpdateContestResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateContestResponse) Reset()
- func (x *UpdateContestResponse) String() string
- type Validator
- type VerifyTokenRequest
- type VerifyTokenResponse
- func (*VerifyTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenResponse) GetMessage() string
- func (x *VerifyTokenResponse) GetOk() bool
- func (*VerifyTokenResponse) ProtoMessage()
- func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenResponse) Reset()
- func (x *VerifyTokenResponse) String() string
Constants ¶
const ( BackendService_PostSubmit_FullMethodName = "/backend.BackendService/PostSubmit" BackendService_GetSubmit_FullMethodName = "/backend.BackendService/GetSubmit" BackendService_ListSubmits_FullMethodName = "/backend.BackendService/ListSubmits" BackendService_GetContestantInfo_FullMethodName = "/backend.BackendService/GetContestantInfo" BackendService_ListContests_FullMethodName = "/backend.BackendService/ListContests" BackendService_GetContest_FullMethodName = "/backend.BackendService/GetContest" BackendService_GetRanking_FullMethodName = "/backend.BackendService/GetRanking" BackendService_VerifyToken_FullMethodName = "/backend.BackendService/VerifyToken" BackendService_PostLogin_FullMethodName = "/backend.BackendService/PostLogin" )
const ( HealthcheckService_PingUnary_FullMethodName = "/backend.HealthcheckService/PingUnary" HealthcheckService_PingServerSideStreaming_FullMethodName = "/backend.HealthcheckService/PingServerSideStreaming" )
const ( AdminService_CreateContest_FullMethodName = "/backend.AdminService/CreateContest" AdminService_UpdateContest_FullMethodName = "/backend.AdminService/UpdateContest" AdminService_CreateGroups_FullMethodName = "/backend.AdminService/CreateGroups" )
Variables ¶
var ( ListSubmitsRequest_SortBy_name = map[int32]string{ 0: "SUBMITED_AT", 1: "SCORE", } ListSubmitsRequest_SortBy_value = map[string]int32{ "SUBMITED_AT": 0, "SCORE": 1, } )
Enum value maps for ListSubmitsRequest_SortBy.
var ( TagSelectionLogicType_name = map[int32]string{ 0: "AUTO", 1: "MANUAL", } TagSelectionLogicType_value = map[string]int32{ "AUTO": 0, "MANUAL": 1, } )
Enum value maps for TagSelectionLogicType.
var ( Status_name = map[int32]string{ 0: "WAITING", 1: "IN_PROGRESS", 2: "SUCCESS", 3: "CONNECTION_FAILED", 4: "VALIDATION_ERROR", 5: "INTERNAL_ERROR", 6: "TIMEOUT", } Status_value = map[string]int32{ "WAITING": 0, "IN_PROGRESS": 1, "SUCCESS": 2, "CONNECTION_FAILED": 3, "VALIDATION_ERROR": 4, "INTERNAL_ERROR": 5, "TIMEOUT": 6, } )
Enum value maps for Status.
var ( Language_name = map[int32]string{ 0: "PHP", 1: "GO", 2: "RUST", 3: "JAVASCRIPT", 4: "CSHARP", 5: "CPP", 6: "RUBY", 7: "PYTHON", } Language_value = map[string]int32{ "PHP": 0, "GO": 1, "RUST": 2, "JAVASCRIPT": 3, "CSHARP": 4, "CPP": 5, "RUBY": 6, "PYTHON": 7, } )
Enum value maps for Language.
var ( Role_name = map[int32]string{ 0: "CONTESTANT", 1: "GUEST", 2: "ADMIN", } Role_value = map[string]int32{ "CONTESTANT": 0, "GUEST": 1, "ADMIN": 2, } )
Enum value maps for Role.
var ( Validator_name = map[int32]string{ 0: "V2022", 1: "V2023", } Validator_value = map[string]int32{ "V2022": 0, "V2023": 1, } )
Enum value maps for Validator.
var AdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "backend.AdminService", HandlerType: (*AdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateContest", Handler: _AdminService_CreateContest_Handler, }, { MethodName: "UpdateContest", Handler: _AdminService_UpdateContest_Handler, }, { MethodName: "CreateGroups", Handler: _AdminService_CreateGroups_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/backend/services.proto", }
AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var BackendService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "backend.BackendService", HandlerType: (*BackendServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PostSubmit", Handler: _BackendService_PostSubmit_Handler, }, { MethodName: "ListSubmits", Handler: _BackendService_ListSubmits_Handler, }, { MethodName: "GetContestantInfo", Handler: _BackendService_GetContestantInfo_Handler, }, { MethodName: "ListContests", Handler: _BackendService_ListContests_Handler, }, { MethodName: "GetContest", Handler: _BackendService_GetContest_Handler, }, { MethodName: "GetRanking", Handler: _BackendService_GetRanking_Handler, }, { MethodName: "VerifyToken", Handler: _BackendService_VerifyToken_Handler, }, { MethodName: "PostLogin", Handler: _BackendService_PostLogin_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetSubmit", Handler: _BackendService_GetSubmit_Handler, ServerStreams: true, }, }, Metadata: "services/backend/services.proto", }
BackendService_ServiceDesc is the grpc.ServiceDesc for BackendService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_services_backend_messages_proto protoreflect.FileDescriptor
var File_services_backend_resources_proto protoreflect.FileDescriptor
var File_services_backend_services_proto protoreflect.FileDescriptor
var HealthcheckService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "backend.HealthcheckService", HandlerType: (*HealthcheckServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PingUnary", Handler: _HealthcheckService_PingUnary_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "PingServerSideStreaming", Handler: _HealthcheckService_PingServerSideStreaming_Handler, ServerStreams: true, }, }, Metadata: "services/backend/services.proto", }
HealthcheckService_ServiceDesc is the grpc.ServiceDesc for HealthcheckService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAdminServiceServer ¶
func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
func RegisterBackendServiceServer ¶
func RegisterBackendServiceServer(s grpc.ServiceRegistrar, srv BackendServiceServer)
func RegisterHealthcheckServiceServer ¶
func RegisterHealthcheckServiceServer(s grpc.ServiceRegistrar, srv HealthcheckServiceServer)
Types ¶
type AdminServiceClient ¶
type AdminServiceClient interface { CreateContest(ctx context.Context, in *CreateContestRequest, opts ...grpc.CallOption) (*CreateContestResponse, error) UpdateContest(ctx context.Context, in *UpdateContestRequest, opts ...grpc.CallOption) (*UpdateContestResponse, error) CreateGroups(ctx context.Context, in *CreateGroupsRequest, opts ...grpc.CallOption) (*CreateGroupsResponse, error) }
AdminServiceClient is the client API for AdminService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAdminServiceClient ¶
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient
type AdminServiceServer ¶
type AdminServiceServer interface { CreateContest(context.Context, *CreateContestRequest) (*CreateContestResponse, error) UpdateContest(context.Context, *UpdateContestRequest) (*UpdateContestResponse, error) CreateGroups(context.Context, *CreateGroupsRequest) (*CreateGroupsResponse, error) }
AdminServiceServer is the server API for AdminService service. All implementations should embed UnimplementedAdminServiceServer for forward compatibility
type BackendServiceClient ¶
type BackendServiceClient interface { // submit PostSubmit(ctx context.Context, in *PostSubmitRequest, opts ...grpc.CallOption) (*PostSubmitResponse, error) GetSubmit(ctx context.Context, in *GetSubmitRequest, opts ...grpc.CallOption) (BackendService_GetSubmitClient, error) ListSubmits(ctx context.Context, in *ListSubmitsRequest, opts ...grpc.CallOption) (*ListSubmitsResponse, error) GetContestantInfo(ctx context.Context, in *GetContestantInfoRequest, opts ...grpc.CallOption) (*GetContestantInfoResponse, error) // contest ListContests(ctx context.Context, in *ListContestsRequest, opts ...grpc.CallOption) (*ListContestsResponse, error) GetContest(ctx context.Context, in *GetContestRequest, opts ...grpc.CallOption) (*GetContestResponse, error) // ranking GetRanking(ctx context.Context, in *GetRankingRequest, opts ...grpc.CallOption) (*GetRankingResponse, error) // auth VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) PostLogin(ctx context.Context, in *PostLoginRequest, opts ...grpc.CallOption) (*PostLoginResponse, error) }
BackendServiceClient is the client API for BackendService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBackendServiceClient ¶
func NewBackendServiceClient(cc grpc.ClientConnInterface) BackendServiceClient
type BackendServiceServer ¶
type BackendServiceServer interface { // submit PostSubmit(context.Context, *PostSubmitRequest) (*PostSubmitResponse, error) GetSubmit(*GetSubmitRequest, BackendService_GetSubmitServer) error ListSubmits(context.Context, *ListSubmitsRequest) (*ListSubmitsResponse, error) GetContestantInfo(context.Context, *GetContestantInfoRequest) (*GetContestantInfoResponse, error) // contest ListContests(context.Context, *ListContestsRequest) (*ListContestsResponse, error) GetContest(context.Context, *GetContestRequest) (*GetContestResponse, error) // ranking GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error) // auth VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) PostLogin(context.Context, *PostLoginRequest) (*PostLoginResponse, error) }
BackendServiceServer is the server API for BackendService service. All implementations should embed UnimplementedBackendServiceServer for forward compatibility
type BackendService_GetSubmitClient ¶
type BackendService_GetSubmitClient interface { Recv() (*GetSubmitResponse, error) grpc.ClientStream }
type BackendService_GetSubmitServer ¶
type BackendService_GetSubmitServer interface { Send(*GetSubmitResponse) error grpc.ServerStream }
type Contest ¶
type Contest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` SubmitLimit int32 `protobuf:"varint,6,opt,name=submit_limit,json=submitLimit,proto3" json:"submit_limit,omitempty"` Slug string `protobuf:"bytes,8,opt,name=slug,proto3" json:"slug,omitempty"` TagSelectionLogic TagSelectionLogicType `` /* 150-byte string literal not displayed */ Validator Validator `protobuf:"varint,10,opt,name=validator,proto3,enum=backend.Validator" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*Contest) Descriptor
deprecated
func (*Contest) GetEndAt ¶
func (x *Contest) GetEndAt() *timestamppb.Timestamp
func (*Contest) GetStartAt ¶
func (x *Contest) GetStartAt() *timestamppb.Timestamp
func (*Contest) GetSubmitLimit ¶
func (*Contest) GetTagSelectionLogic ¶
func (x *Contest) GetTagSelectionLogic() TagSelectionLogicType
func (*Contest) GetValidator ¶
func (*Contest) ProtoMessage ¶
func (*Contest) ProtoMessage()
func (*Contest) ProtoReflect ¶
func (x *Contest) ProtoReflect() protoreflect.Message
type CreateContestRequest ¶
type CreateContestRequest struct { Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"` SubmitLimit int32 `protobuf:"varint,6,opt,name=submit_limit,json=submitLimit,proto3" json:"submit_limit,omitempty"` Slug string `protobuf:"bytes,8,opt,name=slug,proto3" json:"slug,omitempty"` // Types that are assignable to TagSelection: // // *CreateContestRequest_Auto // *CreateContestRequest_Manual TagSelection isCreateContestRequest_TagSelection `protobuf_oneof:"tag_selection"` Validator Validator `protobuf:"varint,11,opt,name=validator,proto3,enum=backend.Validator" json:"validator,omitempty"` TimeLimitPerTask int32 `protobuf:"varint,12,opt,name=time_limit_per_task,json=timeLimitPerTask,proto3" json:"time_limit_per_task,omitempty"` // sec // contains filtered or unexported fields }
func (*CreateContestRequest) Descriptor
deprecated
func (*CreateContestRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateContestRequest.ProtoReflect.Descriptor instead.
func (*CreateContestRequest) GetAuto ¶
func (x *CreateContestRequest) GetAuto() *TagSelectionLogicAuto
func (*CreateContestRequest) GetEndAt ¶
func (x *CreateContestRequest) GetEndAt() *timestamppb.Timestamp
func (*CreateContestRequest) GetManual ¶
func (x *CreateContestRequest) GetManual() *TagSelectionLogicManual
func (*CreateContestRequest) GetSlug ¶
func (x *CreateContestRequest) GetSlug() string
func (*CreateContestRequest) GetStartAt ¶
func (x *CreateContestRequest) GetStartAt() *timestamppb.Timestamp
func (*CreateContestRequest) GetSubmitLimit ¶
func (x *CreateContestRequest) GetSubmitLimit() int32
func (*CreateContestRequest) GetTagSelection ¶
func (m *CreateContestRequest) GetTagSelection() isCreateContestRequest_TagSelection
func (*CreateContestRequest) GetTimeLimitPerTask ¶
func (x *CreateContestRequest) GetTimeLimitPerTask() int32
func (*CreateContestRequest) GetTitle ¶
func (x *CreateContestRequest) GetTitle() string
func (*CreateContestRequest) GetValidator ¶
func (x *CreateContestRequest) GetValidator() Validator
func (*CreateContestRequest) ProtoMessage ¶
func (*CreateContestRequest) ProtoMessage()
func (*CreateContestRequest) ProtoReflect ¶
func (x *CreateContestRequest) ProtoReflect() protoreflect.Message
func (*CreateContestRequest) Reset ¶
func (x *CreateContestRequest) Reset()
func (*CreateContestRequest) String ¶
func (x *CreateContestRequest) String() string
type CreateContestRequest_Auto ¶
type CreateContestRequest_Auto struct {
Auto *TagSelectionLogicAuto `protobuf:"bytes,9,opt,name=auto,proto3,oneof"`
}
type CreateContestRequest_Manual ¶
type CreateContestRequest_Manual struct {
Manual *TagSelectionLogicManual `protobuf:"bytes,10,opt,name=manual,proto3,oneof"`
}
type CreateContestResponse ¶
type CreateContestResponse struct { Contest *Contest `protobuf:"bytes,1,opt,name=contest,proto3" json:"contest,omitempty"` // contains filtered or unexported fields }
func (*CreateContestResponse) Descriptor
deprecated
func (*CreateContestResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateContestResponse.ProtoReflect.Descriptor instead.
func (*CreateContestResponse) GetContest ¶
func (x *CreateContestResponse) GetContest() *Contest
func (*CreateContestResponse) ProtoMessage ¶
func (*CreateContestResponse) ProtoMessage()
func (*CreateContestResponse) ProtoReflect ¶
func (x *CreateContestResponse) ProtoReflect() protoreflect.Message
func (*CreateContestResponse) Reset ¶
func (x *CreateContestResponse) Reset()
func (*CreateContestResponse) String ¶
func (x *CreateContestResponse) String() string
type CreateGroupsRequest ¶
type CreateGroupsRequest struct { Groups []*CreateGroupsRequest_CreateGroupsGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupsRequest) Descriptor
deprecated
func (*CreateGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupsRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupsRequest) GetGroups ¶
func (x *CreateGroupsRequest) GetGroups() []*CreateGroupsRequest_CreateGroupsGroup
func (*CreateGroupsRequest) ProtoMessage ¶
func (*CreateGroupsRequest) ProtoMessage()
func (*CreateGroupsRequest) ProtoReflect ¶
func (x *CreateGroupsRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupsRequest) Reset ¶
func (x *CreateGroupsRequest) Reset()
func (*CreateGroupsRequest) String ¶
func (x *CreateGroupsRequest) String() string
type CreateGroupsRequest_CreateGroupsGroup ¶
type CreateGroupsRequest_CreateGroupsGroup struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Year int32 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=backend.Role" json:"role,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupsRequest_CreateGroupsGroup) Descriptor
deprecated
func (*CreateGroupsRequest_CreateGroupsGroup) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupsRequest_CreateGroupsGroup.ProtoReflect.Descriptor instead.
func (*CreateGroupsRequest_CreateGroupsGroup) GetName ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) GetName() string
func (*CreateGroupsRequest_CreateGroupsGroup) GetPassword ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) GetPassword() string
func (*CreateGroupsRequest_CreateGroupsGroup) GetRole ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) GetRole() Role
func (*CreateGroupsRequest_CreateGroupsGroup) GetYear ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) GetYear() int32
func (*CreateGroupsRequest_CreateGroupsGroup) ProtoMessage ¶
func (*CreateGroupsRequest_CreateGroupsGroup) ProtoMessage()
func (*CreateGroupsRequest_CreateGroupsGroup) ProtoReflect ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) ProtoReflect() protoreflect.Message
func (*CreateGroupsRequest_CreateGroupsGroup) Reset ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) Reset()
func (*CreateGroupsRequest_CreateGroupsGroup) String ¶
func (x *CreateGroupsRequest_CreateGroupsGroup) String() string
type CreateGroupsResponse ¶
type CreateGroupsResponse struct { Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupsResponse) Descriptor
deprecated
func (*CreateGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupsResponse.ProtoReflect.Descriptor instead.
func (*CreateGroupsResponse) GetGroups ¶
func (x *CreateGroupsResponse) GetGroups() []*Group
func (*CreateGroupsResponse) ProtoMessage ¶
func (*CreateGroupsResponse) ProtoMessage()
func (*CreateGroupsResponse) ProtoReflect ¶
func (x *CreateGroupsResponse) ProtoReflect() protoreflect.Message
func (*CreateGroupsResponse) Reset ¶
func (x *CreateGroupsResponse) Reset()
func (*CreateGroupsResponse) String ¶
func (x *CreateGroupsResponse) String() string
type GetContestRequest ¶
type GetContestRequest struct { ContestSlug string `protobuf:"bytes,1,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` // contains filtered or unexported fields }
func (*GetContestRequest) Descriptor
deprecated
func (*GetContestRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContestRequest.ProtoReflect.Descriptor instead.
func (*GetContestRequest) GetContestSlug ¶
func (x *GetContestRequest) GetContestSlug() string
func (*GetContestRequest) ProtoMessage ¶
func (*GetContestRequest) ProtoMessage()
func (*GetContestRequest) ProtoReflect ¶
func (x *GetContestRequest) ProtoReflect() protoreflect.Message
func (*GetContestRequest) Reset ¶
func (x *GetContestRequest) Reset()
func (*GetContestRequest) String ¶
func (x *GetContestRequest) String() string
type GetContestResponse ¶
type GetContestResponse struct { Contest *Contest `protobuf:"bytes,1,opt,name=contest,proto3" json:"contest,omitempty"` // contains filtered or unexported fields }
func (*GetContestResponse) Descriptor
deprecated
func (*GetContestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContestResponse.ProtoReflect.Descriptor instead.
func (*GetContestResponse) GetContest ¶
func (x *GetContestResponse) GetContest() *Contest
func (*GetContestResponse) ProtoMessage ¶
func (*GetContestResponse) ProtoMessage()
func (*GetContestResponse) ProtoReflect ¶
func (x *GetContestResponse) ProtoReflect() protoreflect.Message
func (*GetContestResponse) Reset ¶
func (x *GetContestResponse) Reset()
func (*GetContestResponse) String ¶
func (x *GetContestResponse) String() string
type GetContestantInfoRequest ¶
type GetContestantInfoRequest struct { ContestSlug string `protobuf:"bytes,1,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` // contains filtered or unexported fields }
func (*GetContestantInfoRequest) Descriptor
deprecated
func (*GetContestantInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContestantInfoRequest.ProtoReflect.Descriptor instead.
func (*GetContestantInfoRequest) GetContestSlug ¶
func (x *GetContestantInfoRequest) GetContestSlug() string
func (*GetContestantInfoRequest) ProtoMessage ¶
func (*GetContestantInfoRequest) ProtoMessage()
func (*GetContestantInfoRequest) ProtoReflect ¶
func (x *GetContestantInfoRequest) ProtoReflect() protoreflect.Message
func (*GetContestantInfoRequest) Reset ¶
func (x *GetContestantInfoRequest) Reset()
func (*GetContestantInfoRequest) String ¶
func (x *GetContestantInfoRequest) String() string
type GetContestantInfoResponse ¶
type GetContestantInfoResponse struct { LatestSubmit *Submit `protobuf:"bytes,1,opt,name=latest_submit,json=latestSubmit,proto3,oneof" json:"latest_submit,omitempty"` RemainingSubmitCount int32 `protobuf:"varint,2,opt,name=remaining_submit_count,json=remainingSubmitCount,proto3" json:"remaining_submit_count,omitempty"` // contains filtered or unexported fields }
func (*GetContestantInfoResponse) Descriptor
deprecated
func (*GetContestantInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetContestantInfoResponse.ProtoReflect.Descriptor instead.
func (*GetContestantInfoResponse) GetLatestSubmit ¶
func (x *GetContestantInfoResponse) GetLatestSubmit() *Submit
func (*GetContestantInfoResponse) GetRemainingSubmitCount ¶
func (x *GetContestantInfoResponse) GetRemainingSubmitCount() int32
func (*GetContestantInfoResponse) ProtoMessage ¶
func (*GetContestantInfoResponse) ProtoMessage()
func (*GetContestantInfoResponse) ProtoReflect ¶
func (x *GetContestantInfoResponse) ProtoReflect() protoreflect.Message
func (*GetContestantInfoResponse) Reset ¶
func (x *GetContestantInfoResponse) Reset()
func (*GetContestantInfoResponse) String ¶
func (x *GetContestantInfoResponse) String() string
type GetRankingRequest ¶
type GetRankingRequest struct { ContestSlug string `protobuf:"bytes,1,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` ContainGuest bool `protobuf:"varint,2,opt,name=contain_guest,json=containGuest,proto3" json:"contain_guest,omitempty"` // if it is true, return ranking which includes guests // contains filtered or unexported fields }
func (*GetRankingRequest) Descriptor
deprecated
func (*GetRankingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRankingRequest.ProtoReflect.Descriptor instead.
func (*GetRankingRequest) GetContainGuest ¶
func (x *GetRankingRequest) GetContainGuest() bool
func (*GetRankingRequest) GetContestSlug ¶
func (x *GetRankingRequest) GetContestSlug() string
func (*GetRankingRequest) ProtoMessage ¶
func (*GetRankingRequest) ProtoMessage()
func (*GetRankingRequest) ProtoReflect ¶
func (x *GetRankingRequest) ProtoReflect() protoreflect.Message
func (*GetRankingRequest) Reset ¶
func (x *GetRankingRequest) Reset()
func (*GetRankingRequest) String ¶
func (x *GetRankingRequest) String() string
type GetRankingResponse ¶
type GetRankingResponse struct { Records []*GetRankingResponse_Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` // contains filtered or unexported fields }
func (*GetRankingResponse) Descriptor
deprecated
func (*GetRankingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRankingResponse.ProtoReflect.Descriptor instead.
func (*GetRankingResponse) GetRecords ¶
func (x *GetRankingResponse) GetRecords() []*GetRankingResponse_Record
func (*GetRankingResponse) ProtoMessage ¶
func (*GetRankingResponse) ProtoMessage()
func (*GetRankingResponse) ProtoReflect ¶
func (x *GetRankingResponse) ProtoReflect() protoreflect.Message
func (*GetRankingResponse) Reset ¶
func (x *GetRankingResponse) Reset()
func (*GetRankingResponse) String ¶
func (x *GetRankingResponse) String() string
type GetRankingResponse_Record ¶
type GetRankingResponse_Record struct { Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Score *int32 `protobuf:"varint,3,opt,name=score,proto3,oneof" json:"score,omitempty"` // contains filtered or unexported fields }
func (*GetRankingResponse_Record) Descriptor
deprecated
func (*GetRankingResponse_Record) Descriptor() ([]byte, []int)
Deprecated: Use GetRankingResponse_Record.ProtoReflect.Descriptor instead.
func (*GetRankingResponse_Record) GetGroup ¶
func (x *GetRankingResponse_Record) GetGroup() *Group
func (*GetRankingResponse_Record) GetRank ¶
func (x *GetRankingResponse_Record) GetRank() int32
func (*GetRankingResponse_Record) GetScore ¶
func (x *GetRankingResponse_Record) GetScore() int32
func (*GetRankingResponse_Record) ProtoMessage ¶
func (*GetRankingResponse_Record) ProtoMessage()
func (*GetRankingResponse_Record) ProtoReflect ¶
func (x *GetRankingResponse_Record) ProtoReflect() protoreflect.Message
func (*GetRankingResponse_Record) Reset ¶
func (x *GetRankingResponse_Record) Reset()
func (*GetRankingResponse_Record) String ¶
func (x *GetRankingResponse_Record) String() string
type GetSubmitRequest ¶
type GetSubmitRequest struct { SubmitId int32 `protobuf:"varint,1,opt,name=submit_id,json=submitId,proto3" json:"submit_id,omitempty"` // contains filtered or unexported fields }
func (*GetSubmitRequest) Descriptor
deprecated
func (*GetSubmitRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSubmitRequest.ProtoReflect.Descriptor instead.
func (*GetSubmitRequest) GetSubmitId ¶
func (x *GetSubmitRequest) GetSubmitId() int32
func (*GetSubmitRequest) ProtoMessage ¶
func (*GetSubmitRequest) ProtoMessage()
func (*GetSubmitRequest) ProtoReflect ¶
func (x *GetSubmitRequest) ProtoReflect() protoreflect.Message
func (*GetSubmitRequest) Reset ¶
func (x *GetSubmitRequest) Reset()
func (*GetSubmitRequest) String ¶
func (x *GetSubmitRequest) String() string
type GetSubmitResponse ¶
type GetSubmitResponse struct { Submit *Submit `protobuf:"bytes,1,opt,name=submit,proto3" json:"submit,omitempty"` // contains filtered or unexported fields }
func (*GetSubmitResponse) Descriptor
deprecated
func (*GetSubmitResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSubmitResponse.ProtoReflect.Descriptor instead.
func (*GetSubmitResponse) GetSubmit ¶
func (x *GetSubmitResponse) GetSubmit() *Submit
func (*GetSubmitResponse) ProtoMessage ¶
func (*GetSubmitResponse) ProtoMessage()
func (*GetSubmitResponse) ProtoReflect ¶
func (x *GetSubmitResponse) ProtoReflect() protoreflect.Message
func (*GetSubmitResponse) Reset ¶
func (x *GetSubmitResponse) Reset()
func (*GetSubmitResponse) String ¶
func (x *GetSubmitResponse) String() string
type Group ¶
type Group struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Role Role `protobuf:"varint,4,opt,name=role,proto3,enum=backend.Role" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type HealthcheckServiceClient ¶
type HealthcheckServiceClient interface { PingUnary(ctx context.Context, in *PingUnaryRequest, opts ...grpc.CallOption) (*PingUnaryResponse, error) PingServerSideStreaming(ctx context.Context, in *PingServerSideStreamingRequest, opts ...grpc.CallOption) (HealthcheckService_PingServerSideStreamingClient, error) }
HealthcheckServiceClient is the client API for HealthcheckService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHealthcheckServiceClient ¶
func NewHealthcheckServiceClient(cc grpc.ClientConnInterface) HealthcheckServiceClient
type HealthcheckServiceServer ¶
type HealthcheckServiceServer interface { PingUnary(context.Context, *PingUnaryRequest) (*PingUnaryResponse, error) PingServerSideStreaming(*PingServerSideStreamingRequest, HealthcheckService_PingServerSideStreamingServer) error }
HealthcheckServiceServer is the server API for HealthcheckService service. All implementations should embed UnimplementedHealthcheckServiceServer for forward compatibility
type HealthcheckService_PingServerSideStreamingClient ¶
type HealthcheckService_PingServerSideStreamingClient interface { Recv() (*PingServerSideStreamingResponse, error) grpc.ClientStream }
type HealthcheckService_PingServerSideStreamingServer ¶
type HealthcheckService_PingServerSideStreamingServer interface { Send(*PingServerSideStreamingResponse) error grpc.ServerStream }
type Language ¶
type Language int32
func (Language) Descriptor ¶
func (Language) Descriptor() protoreflect.EnumDescriptor
func (Language) EnumDescriptor
deprecated
func (Language) Number ¶
func (x Language) Number() protoreflect.EnumNumber
func (Language) Type ¶
func (Language) Type() protoreflect.EnumType
type ListContestsRequest ¶
type ListContestsRequest struct {
// contains filtered or unexported fields
}
func (*ListContestsRequest) Descriptor
deprecated
func (*ListContestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListContestsRequest.ProtoReflect.Descriptor instead.
func (*ListContestsRequest) ProtoMessage ¶
func (*ListContestsRequest) ProtoMessage()
func (*ListContestsRequest) ProtoReflect ¶
func (x *ListContestsRequest) ProtoReflect() protoreflect.Message
func (*ListContestsRequest) Reset ¶
func (x *ListContestsRequest) Reset()
func (*ListContestsRequest) String ¶
func (x *ListContestsRequest) String() string
type ListContestsResponse ¶
type ListContestsResponse struct { Contests []*Contest `protobuf:"bytes,2,rep,name=contests,proto3" json:"contests,omitempty"` // contains filtered or unexported fields }
func (*ListContestsResponse) Descriptor
deprecated
func (*ListContestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListContestsResponse.ProtoReflect.Descriptor instead.
func (*ListContestsResponse) GetContests ¶
func (x *ListContestsResponse) GetContests() []*Contest
func (*ListContestsResponse) ProtoMessage ¶
func (*ListContestsResponse) ProtoMessage()
func (*ListContestsResponse) ProtoReflect ¶
func (x *ListContestsResponse) ProtoReflect() protoreflect.Message
func (*ListContestsResponse) Reset ¶
func (x *ListContestsResponse) Reset()
func (*ListContestsResponse) String ¶
func (x *ListContestsResponse) String() string
type ListSubmitsRequest ¶
type ListSubmitsRequest struct { ContestSlug string `protobuf:"bytes,1,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 100 entries per 1 page SortBy *ListSubmitsRequest_SortBy `protobuf:"varint,3,opt,name=sort_by,json=sortBy,proto3,enum=backend.ListSubmitsRequest_SortBy,oneof" json:"sort_by,omitempty"` // default: submited_at IsDesc *bool `protobuf:"varint,4,opt,name=is_desc,json=isDesc,proto3,oneof" json:"is_desc,omitempty"` // default: true GroupName *string `protobuf:"bytes,5,opt,name=group_name,json=groupName,proto3,oneof" json:"group_name,omitempty"` // middle match Status *Status `protobuf:"varint,6,opt,name=status,proto3,enum=backend.Status,oneof" json:"status,omitempty"` ContainsGuest *bool `protobuf:"varint,7,opt,name=contains_guest,json=containsGuest,proto3,oneof" json:"contains_guest,omitempty"` // default: false // contains filtered or unexported fields }
func (*ListSubmitsRequest) Descriptor
deprecated
func (*ListSubmitsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSubmitsRequest.ProtoReflect.Descriptor instead.
func (*ListSubmitsRequest) GetContainsGuest ¶
func (x *ListSubmitsRequest) GetContainsGuest() bool
func (*ListSubmitsRequest) GetContestSlug ¶
func (x *ListSubmitsRequest) GetContestSlug() string
func (*ListSubmitsRequest) GetGroupName ¶
func (x *ListSubmitsRequest) GetGroupName() string
func (*ListSubmitsRequest) GetIsDesc ¶
func (x *ListSubmitsRequest) GetIsDesc() bool
func (*ListSubmitsRequest) GetPage ¶
func (x *ListSubmitsRequest) GetPage() int32
func (*ListSubmitsRequest) GetSortBy ¶
func (x *ListSubmitsRequest) GetSortBy() ListSubmitsRequest_SortBy
func (*ListSubmitsRequest) GetStatus ¶
func (x *ListSubmitsRequest) GetStatus() Status
func (*ListSubmitsRequest) ProtoMessage ¶
func (*ListSubmitsRequest) ProtoMessage()
func (*ListSubmitsRequest) ProtoReflect ¶
func (x *ListSubmitsRequest) ProtoReflect() protoreflect.Message
func (*ListSubmitsRequest) Reset ¶
func (x *ListSubmitsRequest) Reset()
func (*ListSubmitsRequest) String ¶
func (x *ListSubmitsRequest) String() string
type ListSubmitsRequest_SortBy ¶
type ListSubmitsRequest_SortBy int32
const ( ListSubmitsRequest_SUBMITED_AT ListSubmitsRequest_SortBy = 0 ListSubmitsRequest_SCORE ListSubmitsRequest_SortBy = 1 )
func (ListSubmitsRequest_SortBy) Descriptor ¶
func (ListSubmitsRequest_SortBy) Descriptor() protoreflect.EnumDescriptor
func (ListSubmitsRequest_SortBy) Enum ¶
func (x ListSubmitsRequest_SortBy) Enum() *ListSubmitsRequest_SortBy
func (ListSubmitsRequest_SortBy) EnumDescriptor
deprecated
func (ListSubmitsRequest_SortBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListSubmitsRequest_SortBy.Descriptor instead.
func (ListSubmitsRequest_SortBy) Number ¶
func (x ListSubmitsRequest_SortBy) Number() protoreflect.EnumNumber
func (ListSubmitsRequest_SortBy) String ¶
func (x ListSubmitsRequest_SortBy) String() string
func (ListSubmitsRequest_SortBy) Type ¶
func (ListSubmitsRequest_SortBy) Type() protoreflect.EnumType
type ListSubmitsResponse ¶
type ListSubmitsResponse struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` TotalPages int32 `protobuf:"varint,2,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"` Submits []*Submit `protobuf:"bytes,3,rep,name=submits,proto3" json:"submits,omitempty"` // NOTE: task_results will be empty // contains filtered or unexported fields }
func (*ListSubmitsResponse) Descriptor
deprecated
func (*ListSubmitsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSubmitsResponse.ProtoReflect.Descriptor instead.
func (*ListSubmitsResponse) GetPage ¶
func (x *ListSubmitsResponse) GetPage() int32
func (*ListSubmitsResponse) GetSubmits ¶
func (x *ListSubmitsResponse) GetSubmits() []*Submit
func (*ListSubmitsResponse) GetTotalPages ¶
func (x *ListSubmitsResponse) GetTotalPages() int32
func (*ListSubmitsResponse) ProtoMessage ¶
func (*ListSubmitsResponse) ProtoMessage()
func (*ListSubmitsResponse) ProtoReflect ¶
func (x *ListSubmitsResponse) ProtoReflect() protoreflect.Message
func (*ListSubmitsResponse) Reset ¶
func (x *ListSubmitsResponse) Reset()
func (*ListSubmitsResponse) String ¶
func (x *ListSubmitsResponse) String() string
type PingServerSideStreamingRequest ¶
type PingServerSideStreamingRequest struct { Ping string `protobuf:"bytes,2,opt,name=ping,proto3" json:"ping,omitempty"` // contains filtered or unexported fields }
func (*PingServerSideStreamingRequest) Descriptor
deprecated
func (*PingServerSideStreamingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingServerSideStreamingRequest.ProtoReflect.Descriptor instead.
func (*PingServerSideStreamingRequest) GetPing ¶
func (x *PingServerSideStreamingRequest) GetPing() string
func (*PingServerSideStreamingRequest) ProtoMessage ¶
func (*PingServerSideStreamingRequest) ProtoMessage()
func (*PingServerSideStreamingRequest) ProtoReflect ¶
func (x *PingServerSideStreamingRequest) ProtoReflect() protoreflect.Message
func (*PingServerSideStreamingRequest) Reset ¶
func (x *PingServerSideStreamingRequest) Reset()
func (*PingServerSideStreamingRequest) String ¶
func (x *PingServerSideStreamingRequest) String() string
type PingServerSideStreamingResponse ¶
type PingServerSideStreamingResponse struct { Pong string `protobuf:"bytes,2,opt,name=pong,proto3" json:"pong,omitempty"` // contains filtered or unexported fields }
func (*PingServerSideStreamingResponse) Descriptor
deprecated
func (*PingServerSideStreamingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingServerSideStreamingResponse.ProtoReflect.Descriptor instead.
func (*PingServerSideStreamingResponse) GetPong ¶
func (x *PingServerSideStreamingResponse) GetPong() string
func (*PingServerSideStreamingResponse) ProtoMessage ¶
func (*PingServerSideStreamingResponse) ProtoMessage()
func (*PingServerSideStreamingResponse) ProtoReflect ¶
func (x *PingServerSideStreamingResponse) ProtoReflect() protoreflect.Message
func (*PingServerSideStreamingResponse) Reset ¶
func (x *PingServerSideStreamingResponse) Reset()
func (*PingServerSideStreamingResponse) String ¶
func (x *PingServerSideStreamingResponse) String() string
type PingUnaryRequest ¶
type PingUnaryRequest struct { Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"` // contains filtered or unexported fields }
func (*PingUnaryRequest) Descriptor
deprecated
func (*PingUnaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingUnaryRequest.ProtoReflect.Descriptor instead.
func (*PingUnaryRequest) GetPing ¶
func (x *PingUnaryRequest) GetPing() string
func (*PingUnaryRequest) ProtoMessage ¶
func (*PingUnaryRequest) ProtoMessage()
func (*PingUnaryRequest) ProtoReflect ¶
func (x *PingUnaryRequest) ProtoReflect() protoreflect.Message
func (*PingUnaryRequest) Reset ¶
func (x *PingUnaryRequest) Reset()
func (*PingUnaryRequest) String ¶
func (x *PingUnaryRequest) String() string
type PingUnaryResponse ¶
type PingUnaryResponse struct { Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"` // contains filtered or unexported fields }
func (*PingUnaryResponse) Descriptor
deprecated
func (*PingUnaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingUnaryResponse.ProtoReflect.Descriptor instead.
func (*PingUnaryResponse) GetPong ¶
func (x *PingUnaryResponse) GetPong() string
func (*PingUnaryResponse) ProtoMessage ¶
func (*PingUnaryResponse) ProtoMessage()
func (*PingUnaryResponse) ProtoReflect ¶
func (x *PingUnaryResponse) ProtoReflect() protoreflect.Message
func (*PingUnaryResponse) Reset ¶
func (x *PingUnaryResponse) Reset()
func (*PingUnaryResponse) String ¶
func (x *PingUnaryResponse) String() string
type PostLoginRequest ¶
type PostLoginRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // it means group_id Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*PostLoginRequest) Descriptor
deprecated
func (*PostLoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostLoginRequest.ProtoReflect.Descriptor instead.
func (*PostLoginRequest) GetId ¶
func (x *PostLoginRequest) GetId() string
func (*PostLoginRequest) GetPassword ¶
func (x *PostLoginRequest) GetPassword() string
func (*PostLoginRequest) ProtoMessage ¶
func (*PostLoginRequest) ProtoMessage()
func (*PostLoginRequest) ProtoReflect ¶
func (x *PostLoginRequest) ProtoReflect() protoreflect.Message
func (*PostLoginRequest) Reset ¶
func (x *PostLoginRequest) Reset()
func (*PostLoginRequest) String ¶
func (x *PostLoginRequest) String() string
type PostLoginResponse ¶
type PostLoginResponse struct { Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*PostLoginResponse) Descriptor
deprecated
func (*PostLoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostLoginResponse.ProtoReflect.Descriptor instead.
func (*PostLoginResponse) GetGroup ¶
func (x *PostLoginResponse) GetGroup() *Group
func (*PostLoginResponse) GetToken ¶
func (x *PostLoginResponse) GetToken() string
func (*PostLoginResponse) ProtoMessage ¶
func (*PostLoginResponse) ProtoMessage()
func (*PostLoginResponse) ProtoReflect ¶
func (x *PostLoginResponse) ProtoReflect() protoreflect.Message
func (*PostLoginResponse) Reset ¶
func (x *PostLoginResponse) Reset()
func (*PostLoginResponse) String ¶
func (x *PostLoginResponse) String() string
type PostSubmitRequest ¶
type PostSubmitRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` ContestSlug string `protobuf:"bytes,2,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` // contains filtered or unexported fields }
func (*PostSubmitRequest) Descriptor
deprecated
func (*PostSubmitRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostSubmitRequest.ProtoReflect.Descriptor instead.
func (*PostSubmitRequest) GetContestSlug ¶
func (x *PostSubmitRequest) GetContestSlug() string
func (*PostSubmitRequest) GetUrl ¶
func (x *PostSubmitRequest) GetUrl() string
func (*PostSubmitRequest) ProtoMessage ¶
func (*PostSubmitRequest) ProtoMessage()
func (*PostSubmitRequest) ProtoReflect ¶
func (x *PostSubmitRequest) ProtoReflect() protoreflect.Message
func (*PostSubmitRequest) Reset ¶
func (x *PostSubmitRequest) Reset()
func (*PostSubmitRequest) String ¶
func (x *PostSubmitRequest) String() string
type PostSubmitResponse ¶
type PostSubmitResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` ContestSlug string `protobuf:"bytes,3,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` SubmitedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=submited_at,json=submitedAt,proto3" json:"submited_at,omitempty"` // contains filtered or unexported fields }
func (*PostSubmitResponse) Descriptor
deprecated
func (*PostSubmitResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostSubmitResponse.ProtoReflect.Descriptor instead.
func (*PostSubmitResponse) GetContestSlug ¶
func (x *PostSubmitResponse) GetContestSlug() string
func (*PostSubmitResponse) GetId ¶
func (x *PostSubmitResponse) GetId() int32
func (*PostSubmitResponse) GetSubmitedAt ¶
func (x *PostSubmitResponse) GetSubmitedAt() *timestamppb.Timestamp
func (*PostSubmitResponse) GetUrl ¶
func (x *PostSubmitResponse) GetUrl() string
func (*PostSubmitResponse) ProtoMessage ¶
func (*PostSubmitResponse) ProtoMessage()
func (*PostSubmitResponse) ProtoReflect ¶
func (x *PostSubmitResponse) ProtoReflect() protoreflect.Message
func (*PostSubmitResponse) Reset ¶
func (x *PostSubmitResponse) Reset()
func (*PostSubmitResponse) String ¶
func (x *PostSubmitResponse) String() string
type Role ¶
type Role int32
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
type Status ¶
type Status int32
const ( Status_WAITING Status = 0 // waiting for benchmark Status_IN_PROGRESS Status = 1 // in progress Status_SUCCESS Status = 2 // benchmark succeeded Status_CONNECTION_FAILED Status = 3 // failed to connect Status_VALIDATION_ERROR Status = 4 // validation error Status_INTERNAL_ERROR Status = 5 // backend error Status_TIMEOUT Status = 6 // timeout )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type Submit ¶
type Submit struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score,omitempty"` Language Language `protobuf:"varint,5,opt,name=language,proto3,enum=backend.Language" json:"language,omitempty"` SubmitedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=submited_at,json=submitedAt,proto3" json:"submited_at,omitempty"` CompletedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=completed_at,json=completedAt,proto3,oneof" json:"completed_at,omitempty"` // it this field is not null, this submit is completed TaskResults []*TaskResult `protobuf:"bytes,8,rep,name=task_results,json=taskResults,proto3" json:"task_results,omitempty"` Status Status `protobuf:"varint,9,opt,name=status,proto3,enum=backend.Status" json:"status,omitempty"` ErrorMessage *string `protobuf:"bytes,10,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // if the connection error occurs, then this field is filled TagCount int32 `protobuf:"varint,11,opt,name=tag_count,json=tagCount,proto3" json:"tag_count,omitempty"` // contains filtered or unexported fields }
func (*Submit) Descriptor
deprecated
func (*Submit) GetCompletedAt ¶
func (x *Submit) GetCompletedAt() *timestamppb.Timestamp
func (*Submit) GetErrorMessage ¶
func (*Submit) GetGroupName ¶
func (*Submit) GetLanguage ¶
func (*Submit) GetSubmitedAt ¶
func (x *Submit) GetSubmitedAt() *timestamppb.Timestamp
func (*Submit) GetTagCount ¶
func (*Submit) GetTaskResults ¶
func (x *Submit) GetTaskResults() []*TaskResult
func (*Submit) ProtoMessage ¶
func (*Submit) ProtoMessage()
func (*Submit) ProtoReflect ¶
func (x *Submit) ProtoReflect() protoreflect.Message
type TagSelectionLogicAuto ¶
type TagSelectionLogicAuto struct { Type TagSelectionLogicType `protobuf:"varint,1,opt,name=type,proto3,enum=backend.TagSelectionLogicType" json:"type,omitempty"` Tags *Tags `protobuf:"bytes,2,opt,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*TagSelectionLogicAuto) Descriptor
deprecated
func (*TagSelectionLogicAuto) Descriptor() ([]byte, []int)
Deprecated: Use TagSelectionLogicAuto.ProtoReflect.Descriptor instead.
func (*TagSelectionLogicAuto) GetTags ¶
func (x *TagSelectionLogicAuto) GetTags() *Tags
func (*TagSelectionLogicAuto) GetType ¶
func (x *TagSelectionLogicAuto) GetType() TagSelectionLogicType
func (*TagSelectionLogicAuto) ProtoMessage ¶
func (*TagSelectionLogicAuto) ProtoMessage()
func (*TagSelectionLogicAuto) ProtoReflect ¶
func (x *TagSelectionLogicAuto) ProtoReflect() protoreflect.Message
func (*TagSelectionLogicAuto) Reset ¶
func (x *TagSelectionLogicAuto) Reset()
func (*TagSelectionLogicAuto) String ¶
func (x *TagSelectionLogicAuto) String() string
type TagSelectionLogicManual ¶
type TagSelectionLogicManual struct { Type TagSelectionLogicType `protobuf:"varint,1,opt,name=type,proto3,enum=backend.TagSelectionLogicType" json:"type,omitempty"` TagsList []*Tags `protobuf:"bytes,2,rep,name=tags_list,json=tagsList,proto3" json:"tags_list,omitempty"` // tags_list[i] .. used if the attempt count is i+1 // contains filtered or unexported fields }
func (*TagSelectionLogicManual) Descriptor
deprecated
func (*TagSelectionLogicManual) Descriptor() ([]byte, []int)
Deprecated: Use TagSelectionLogicManual.ProtoReflect.Descriptor instead.
func (*TagSelectionLogicManual) GetTagsList ¶
func (x *TagSelectionLogicManual) GetTagsList() []*Tags
func (*TagSelectionLogicManual) GetType ¶
func (x *TagSelectionLogicManual) GetType() TagSelectionLogicType
func (*TagSelectionLogicManual) ProtoMessage ¶
func (*TagSelectionLogicManual) ProtoMessage()
func (*TagSelectionLogicManual) ProtoReflect ¶
func (x *TagSelectionLogicManual) ProtoReflect() protoreflect.Message
func (*TagSelectionLogicManual) Reset ¶
func (x *TagSelectionLogicManual) Reset()
func (*TagSelectionLogicManual) String ¶
func (x *TagSelectionLogicManual) String() string
type TagSelectionLogicType ¶
type TagSelectionLogicType int32
const ( TagSelectionLogicType_AUTO TagSelectionLogicType = 0 TagSelectionLogicType_MANUAL TagSelectionLogicType = 1 )
func (TagSelectionLogicType) Descriptor ¶
func (TagSelectionLogicType) Descriptor() protoreflect.EnumDescriptor
func (TagSelectionLogicType) Enum ¶
func (x TagSelectionLogicType) Enum() *TagSelectionLogicType
func (TagSelectionLogicType) EnumDescriptor
deprecated
func (TagSelectionLogicType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TagSelectionLogicType.Descriptor instead.
func (TagSelectionLogicType) Number ¶
func (x TagSelectionLogicType) Number() protoreflect.EnumNumber
func (TagSelectionLogicType) String ¶
func (x TagSelectionLogicType) String() string
func (TagSelectionLogicType) Type ¶
func (TagSelectionLogicType) Type() protoreflect.EnumType
type Tags ¶
type Tags struct { Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*Tags) Descriptor
deprecated
func (*Tags) ProtoMessage ¶
func (*Tags) ProtoMessage()
func (*Tags) ProtoReflect ¶
func (x *Tags) ProtoReflect() protoreflect.Message
type TaskResult ¶
type TaskResult struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` RequestPerSec int32 `protobuf:"varint,2,opt,name=request_per_sec,json=requestPerSec,proto3" json:"request_per_sec,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` RequestContentType string `protobuf:"bytes,5,opt,name=request_content_type,json=requestContentType,proto3" json:"request_content_type,omitempty"` RequestBody *string `protobuf:"bytes,6,opt,name=request_body,json=requestBody,proto3,oneof" json:"request_body,omitempty"` ResponseCode string `protobuf:"bytes,7,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` ResponseContentType string `protobuf:"bytes,8,opt,name=response_content_type,json=responseContentType,proto3" json:"response_content_type,omitempty"` ResponseBody string `protobuf:"bytes,9,opt,name=response_body,json=responseBody,proto3" json:"response_body,omitempty"` ThreadNum int32 `protobuf:"varint,10,opt,name=thread_num,json=threadNum,proto3" json:"thread_num,omitempty"` AttemptCount int32 `protobuf:"varint,11,opt,name=attempt_count,json=attemptCount,proto3" json:"attempt_count,omitempty"` AttemptTime int32 `protobuf:"varint,12,opt,name=attempt_time,json=attemptTime,proto3" json:"attempt_time,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"` ErrorMessage *string `protobuf:"bytes,15,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` Status Status `protobuf:"varint,16,opt,name=status,proto3,enum=backend.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*TaskResult) Descriptor
deprecated
func (*TaskResult) Descriptor() ([]byte, []int)
Deprecated: Use TaskResult.ProtoReflect.Descriptor instead.
func (*TaskResult) GetAttemptCount ¶
func (x *TaskResult) GetAttemptCount() int32
func (*TaskResult) GetAttemptTime ¶
func (x *TaskResult) GetAttemptTime() int32
func (*TaskResult) GetCreatedAt ¶
func (x *TaskResult) GetCreatedAt() *timestamppb.Timestamp
func (*TaskResult) GetDeletedAt ¶
func (x *TaskResult) GetDeletedAt() *timestamppb.Timestamp
func (*TaskResult) GetErrorMessage ¶
func (x *TaskResult) GetErrorMessage() string
func (*TaskResult) GetId ¶
func (x *TaskResult) GetId() int32
func (*TaskResult) GetMethod ¶
func (x *TaskResult) GetMethod() string
func (*TaskResult) GetRequestBody ¶
func (x *TaskResult) GetRequestBody() string
func (*TaskResult) GetRequestContentType ¶
func (x *TaskResult) GetRequestContentType() string
func (*TaskResult) GetRequestPerSec ¶
func (x *TaskResult) GetRequestPerSec() int32
func (*TaskResult) GetResponseBody ¶
func (x *TaskResult) GetResponseBody() string
func (*TaskResult) GetResponseCode ¶
func (x *TaskResult) GetResponseCode() string
func (*TaskResult) GetResponseContentType ¶
func (x *TaskResult) GetResponseContentType() string
func (*TaskResult) GetStatus ¶
func (x *TaskResult) GetStatus() Status
func (*TaskResult) GetThreadNum ¶
func (x *TaskResult) GetThreadNum() int32
func (*TaskResult) GetUrl ¶
func (x *TaskResult) GetUrl() string
func (*TaskResult) ProtoMessage ¶
func (*TaskResult) ProtoMessage()
func (*TaskResult) ProtoReflect ¶
func (x *TaskResult) ProtoReflect() protoreflect.Message
func (*TaskResult) Reset ¶
func (x *TaskResult) Reset()
func (*TaskResult) String ¶
func (x *TaskResult) String() string
type UnimplementedAdminServiceServer ¶
type UnimplementedAdminServiceServer struct { }
UnimplementedAdminServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAdminServiceServer) CreateContest ¶
func (UnimplementedAdminServiceServer) CreateContest(context.Context, *CreateContestRequest) (*CreateContestResponse, error)
func (UnimplementedAdminServiceServer) CreateGroups ¶
func (UnimplementedAdminServiceServer) CreateGroups(context.Context, *CreateGroupsRequest) (*CreateGroupsResponse, error)
func (UnimplementedAdminServiceServer) UpdateContest ¶
func (UnimplementedAdminServiceServer) UpdateContest(context.Context, *UpdateContestRequest) (*UpdateContestResponse, error)
type UnimplementedBackendServiceServer ¶
type UnimplementedBackendServiceServer struct { }
UnimplementedBackendServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBackendServiceServer) GetContest ¶
func (UnimplementedBackendServiceServer) GetContest(context.Context, *GetContestRequest) (*GetContestResponse, error)
func (UnimplementedBackendServiceServer) GetContestantInfo ¶
func (UnimplementedBackendServiceServer) GetContestantInfo(context.Context, *GetContestantInfoRequest) (*GetContestantInfoResponse, error)
func (UnimplementedBackendServiceServer) GetRanking ¶
func (UnimplementedBackendServiceServer) GetRanking(context.Context, *GetRankingRequest) (*GetRankingResponse, error)
func (UnimplementedBackendServiceServer) GetSubmit ¶
func (UnimplementedBackendServiceServer) GetSubmit(*GetSubmitRequest, BackendService_GetSubmitServer) error
func (UnimplementedBackendServiceServer) ListContests ¶
func (UnimplementedBackendServiceServer) ListContests(context.Context, *ListContestsRequest) (*ListContestsResponse, error)
func (UnimplementedBackendServiceServer) ListSubmits ¶
func (UnimplementedBackendServiceServer) ListSubmits(context.Context, *ListSubmitsRequest) (*ListSubmitsResponse, error)
func (UnimplementedBackendServiceServer) PostLogin ¶
func (UnimplementedBackendServiceServer) PostLogin(context.Context, *PostLoginRequest) (*PostLoginResponse, error)
func (UnimplementedBackendServiceServer) PostSubmit ¶
func (UnimplementedBackendServiceServer) PostSubmit(context.Context, *PostSubmitRequest) (*PostSubmitResponse, error)
func (UnimplementedBackendServiceServer) VerifyToken ¶
func (UnimplementedBackendServiceServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
type UnimplementedHealthcheckServiceServer ¶
type UnimplementedHealthcheckServiceServer struct { }
UnimplementedHealthcheckServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedHealthcheckServiceServer) PingServerSideStreaming ¶
func (UnimplementedHealthcheckServiceServer) PingServerSideStreaming(*PingServerSideStreamingRequest, HealthcheckService_PingServerSideStreamingServer) error
func (UnimplementedHealthcheckServiceServer) PingUnary ¶
func (UnimplementedHealthcheckServiceServer) PingUnary(context.Context, *PingUnaryRequest) (*PingUnaryResponse, error)
type UnsafeAdminServiceServer ¶
type UnsafeAdminServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServiceServer will result in compilation errors.
type UnsafeBackendServiceServer ¶
type UnsafeBackendServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBackendServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackendServiceServer will result in compilation errors.
type UnsafeHealthcheckServiceServer ¶
type UnsafeHealthcheckServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHealthcheckServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HealthcheckServiceServer will result in compilation errors.
type UpdateContestRequest ¶
type UpdateContestRequest struct { ContestSlug string `protobuf:"bytes,1,opt,name=contest_slug,json=contestSlug,proto3" json:"contest_slug,omitempty"` Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_at,json=startAt,proto3,oneof" json:"start_at,omitempty"` EndAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_at,json=endAt,proto3,oneof" json:"end_at,omitempty"` SubmitLimit *int32 `protobuf:"varint,6,opt,name=submit_limit,json=submitLimit,proto3,oneof" json:"submit_limit,omitempty"` Validator *Validator `protobuf:"varint,9,opt,name=validator,proto3,enum=backend.Validator,oneof" json:"validator,omitempty"` // contains filtered or unexported fields }
NOTE: cannot change slug and tag selection logic
func (*UpdateContestRequest) Descriptor
deprecated
func (*UpdateContestRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateContestRequest.ProtoReflect.Descriptor instead.
func (*UpdateContestRequest) GetContestSlug ¶
func (x *UpdateContestRequest) GetContestSlug() string
func (*UpdateContestRequest) GetEndAt ¶
func (x *UpdateContestRequest) GetEndAt() *timestamppb.Timestamp
func (*UpdateContestRequest) GetStartAt ¶
func (x *UpdateContestRequest) GetStartAt() *timestamppb.Timestamp
func (*UpdateContestRequest) GetSubmitLimit ¶
func (x *UpdateContestRequest) GetSubmitLimit() int32
func (*UpdateContestRequest) GetTitle ¶
func (x *UpdateContestRequest) GetTitle() string
func (*UpdateContestRequest) GetValidator ¶
func (x *UpdateContestRequest) GetValidator() Validator
func (*UpdateContestRequest) ProtoMessage ¶
func (*UpdateContestRequest) ProtoMessage()
func (*UpdateContestRequest) ProtoReflect ¶
func (x *UpdateContestRequest) ProtoReflect() protoreflect.Message
func (*UpdateContestRequest) Reset ¶
func (x *UpdateContestRequest) Reset()
func (*UpdateContestRequest) String ¶
func (x *UpdateContestRequest) String() string
type UpdateContestResponse ¶
type UpdateContestResponse struct { Contest *Contest `protobuf:"bytes,1,opt,name=contest,proto3" json:"contest,omitempty"` // contains filtered or unexported fields }
func (*UpdateContestResponse) Descriptor
deprecated
func (*UpdateContestResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateContestResponse.ProtoReflect.Descriptor instead.
func (*UpdateContestResponse) GetContest ¶
func (x *UpdateContestResponse) GetContest() *Contest
func (*UpdateContestResponse) ProtoMessage ¶
func (*UpdateContestResponse) ProtoMessage()
func (*UpdateContestResponse) ProtoReflect ¶
func (x *UpdateContestResponse) ProtoReflect() protoreflect.Message
func (*UpdateContestResponse) Reset ¶
func (x *UpdateContestResponse) Reset()
func (*UpdateContestResponse) String ¶
func (x *UpdateContestResponse) String() string
type Validator ¶
type Validator int32
運用的に難があるけど仕方ない・・ DB だけでここら辺をやるとしたら、AtCoder のスペシャルジャッジみたいに シングルの Go や C++ で書かれた validator を download & compile して request と response を渡してチェックしてもらうとかの形にしないといけない気がする
func (Validator) Descriptor ¶
func (Validator) Descriptor() protoreflect.EnumDescriptor
func (Validator) EnumDescriptor
deprecated
func (Validator) Number ¶
func (x Validator) Number() protoreflect.EnumNumber
func (Validator) Type ¶
func (Validator) Type() protoreflect.EnumType
type VerifyTokenRequest ¶
type VerifyTokenRequest struct {
// contains filtered or unexported fields
}
func (*VerifyTokenRequest) Descriptor
deprecated
func (*VerifyTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.
func (*VerifyTokenRequest) ProtoMessage ¶
func (*VerifyTokenRequest) ProtoMessage()
func (*VerifyTokenRequest) ProtoReflect ¶
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
func (*VerifyTokenRequest) Reset ¶
func (x *VerifyTokenRequest) Reset()
func (*VerifyTokenRequest) String ¶
func (x *VerifyTokenRequest) String() string
type VerifyTokenResponse ¶
type VerifyTokenResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenResponse) Descriptor
deprecated
func (*VerifyTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenResponse.ProtoReflect.Descriptor instead.
func (*VerifyTokenResponse) GetMessage ¶
func (x *VerifyTokenResponse) GetMessage() string
func (*VerifyTokenResponse) GetOk ¶
func (x *VerifyTokenResponse) GetOk() bool
func (*VerifyTokenResponse) ProtoMessage ¶
func (*VerifyTokenResponse) ProtoMessage()
func (*VerifyTokenResponse) ProtoReflect ¶
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
func (*VerifyTokenResponse) Reset ¶
func (x *VerifyTokenResponse) Reset()
func (*VerifyTokenResponse) String ¶
func (x *VerifyTokenResponse) String() string