Versions in this module Expand all Collapse all v2 v2.0.2 May 23, 2023 v2.0.1 Apr 21, 2023 Changes in this version + const GoodguyCrawlService_GetContestRecord_FullMethodName + const GoodguyCrawlService_GetDailyQuestion_FullMethodName + const GoodguyCrawlService_GetRecentContest_FullMethodName + const GoodguyCrawlService_GetSubmitRecord_FullMethodName + var File_goodguy_crawl_proto protoreflect.FileDescriptor + var GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage_name = map[int32]string + var GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage_value = map[string]int32 + var GetSubmitRecordResponse_SubmitRecord_Verdict_name = map[int32]string + var GetSubmitRecordResponse_SubmitRecord_Verdict_value = map[string]int32 + var GoodguyCrawlService_ServiceDesc = grpc.ServiceDesc + func RegisterGoodguyCrawlServiceServer(s grpc.ServiceRegistrar, srv GoodguyCrawlServiceServer) + type AuthInfo struct + Password string + Username string + func (*AuthInfo) Descriptor() ([]byte, []int) + func (*AuthInfo) ProtoMessage() + func (x *AuthInfo) GetPassword() string + func (x *AuthInfo) GetUsername() string + func (x *AuthInfo) ProtoReflect() protoreflect.Message + func (x *AuthInfo) Reset() + func (x *AuthInfo) String() string + type GetContestRecordRequest struct + Handle string + Platform string + func (*GetContestRecordRequest) Descriptor() ([]byte, []int) + func (*GetContestRecordRequest) ProtoMessage() + func (x *GetContestRecordRequest) GetHandle() string + func (x *GetContestRecordRequest) GetPlatform() string + func (x *GetContestRecordRequest) ProtoReflect() protoreflect.Message + func (x *GetContestRecordRequest) Reset() + func (x *GetContestRecordRequest) String() string + type GetContestRecordResponse struct + Handle string + Length int32 + Platform string + ProfileUrl string + Rating int32 + Record []*GetContestRecordResponse_Record + func (*GetContestRecordResponse) Descriptor() ([]byte, []int) + func (*GetContestRecordResponse) ProtoMessage() + func (x *GetContestRecordResponse) GetHandle() string + func (x *GetContestRecordResponse) GetLength() int32 + func (x *GetContestRecordResponse) GetPlatform() string + func (x *GetContestRecordResponse) GetProfileUrl() string + func (x *GetContestRecordResponse) GetRating() int32 + func (x *GetContestRecordResponse) GetRecord() []*GetContestRecordResponse_Record + func (x *GetContestRecordResponse) ProtoReflect() protoreflect.Message + func (x *GetContestRecordResponse) Reset() + func (x *GetContestRecordResponse) String() string + type GetContestRecordResponse_Record struct + Name string + Rating int32 + Timestamp int64 + Url string + func (*GetContestRecordResponse_Record) Descriptor() ([]byte, []int) + func (*GetContestRecordResponse_Record) ProtoMessage() + func (x *GetContestRecordResponse_Record) GetName() string + func (x *GetContestRecordResponse_Record) GetRating() int32 + func (x *GetContestRecordResponse_Record) GetTimestamp() int64 + func (x *GetContestRecordResponse_Record) GetUrl() string + func (x *GetContestRecordResponse_Record) ProtoReflect() protoreflect.Message + func (x *GetContestRecordResponse_Record) Reset() + func (x *GetContestRecordResponse_Record) String() string + type GetDailyQuestionRequest struct + Platform string + func (*GetDailyQuestionRequest) Descriptor() ([]byte, []int) + func (*GetDailyQuestionRequest) ProtoMessage() + func (x *GetDailyQuestionRequest) GetPlatform() string + func (x *GetDailyQuestionRequest) ProtoReflect() protoreflect.Message + func (x *GetDailyQuestionRequest) Reset() + func (x *GetDailyQuestionRequest) String() string + type GetDailyQuestionResponse struct + Problem []*GetDailyQuestionResponse_Problem + func (*GetDailyQuestionResponse) Descriptor() ([]byte, []int) + func (*GetDailyQuestionResponse) ProtoMessage() + func (x *GetDailyQuestionResponse) GetProblem() []*GetDailyQuestionResponse_Problem + func (x *GetDailyQuestionResponse) ProtoReflect() protoreflect.Message + func (x *GetDailyQuestionResponse) Reset() + func (x *GetDailyQuestionResponse) String() string + type GetDailyQuestionResponse_Problem struct + Difficulty string + Extra map[string]string + Id string + Name string + Platform string + Url string + func (*GetDailyQuestionResponse_Problem) Descriptor() ([]byte, []int) + func (*GetDailyQuestionResponse_Problem) ProtoMessage() + func (x *GetDailyQuestionResponse_Problem) GetDifficulty() string + func (x *GetDailyQuestionResponse_Problem) GetExtra() map[string]string + func (x *GetDailyQuestionResponse_Problem) GetId() string + func (x *GetDailyQuestionResponse_Problem) GetName() string + func (x *GetDailyQuestionResponse_Problem) GetPlatform() string + func (x *GetDailyQuestionResponse_Problem) GetUrl() string + func (x *GetDailyQuestionResponse_Problem) ProtoReflect() protoreflect.Message + func (x *GetDailyQuestionResponse_Problem) Reset() + func (x *GetDailyQuestionResponse_Problem) String() string + type GetRecentContestRequest struct + Platform string + func (*GetRecentContestRequest) Descriptor() ([]byte, []int) + func (*GetRecentContestRequest) ProtoMessage() + func (x *GetRecentContestRequest) GetPlatform() string + func (x *GetRecentContestRequest) ProtoReflect() protoreflect.Message + func (x *GetRecentContestRequest) Reset() + func (x *GetRecentContestRequest) String() string + type GetRecentContestResponse struct + Platform string + RecentContest []*GetRecentContestResponse_Contest + func (*GetRecentContestResponse) Descriptor() ([]byte, []int) + func (*GetRecentContestResponse) ProtoMessage() + func (x *GetRecentContestResponse) GetPlatform() string + func (x *GetRecentContestResponse) GetRecentContest() []*GetRecentContestResponse_Contest + func (x *GetRecentContestResponse) ProtoReflect() protoreflect.Message + func (x *GetRecentContestResponse) Reset() + func (x *GetRecentContestResponse) String() string + type GetRecentContestResponse_Contest struct + Duration int32 + ExtInfo map[string]string + Name string + Timestamp int64 + Url string + func (*GetRecentContestResponse_Contest) Descriptor() ([]byte, []int) + func (*GetRecentContestResponse_Contest) ProtoMessage() + func (x *GetRecentContestResponse_Contest) GetDuration() int32 + func (x *GetRecentContestResponse_Contest) GetExtInfo() map[string]string + func (x *GetRecentContestResponse_Contest) GetName() string + func (x *GetRecentContestResponse_Contest) GetTimestamp() int64 + func (x *GetRecentContestResponse_Contest) GetUrl() string + func (x *GetRecentContestResponse_Contest) ProtoReflect() protoreflect.Message + func (x *GetRecentContestResponse_Contest) Reset() + func (x *GetRecentContestResponse_Contest) String() string + type GetSubmitRecordRequest struct + AuthInfo *AuthInfo + Handle string + Platform string + func (*GetSubmitRecordRequest) Descriptor() ([]byte, []int) + func (*GetSubmitRecordRequest) ProtoMessage() + func (x *GetSubmitRecordRequest) GetAuthInfo() *AuthInfo + func (x *GetSubmitRecordRequest) GetHandle() string + func (x *GetSubmitRecordRequest) GetPlatform() string + func (x *GetSubmitRecordRequest) ProtoReflect() protoreflect.Message + func (x *GetSubmitRecordRequest) Reset() + func (x *GetSubmitRecordRequest) String() string + type GetSubmitRecordResponse struct + AcceptCount int32 + Distribution map[int32]int32 + Handle string + OjDistribution map[string]int32 + Platform string + ProfileUrl string + SubmitCount int32 + SubmitRecord []*GetSubmitRecordResponse_SubmitRecord + func (*GetSubmitRecordResponse) Descriptor() ([]byte, []int) + func (*GetSubmitRecordResponse) ProtoMessage() + func (x *GetSubmitRecordResponse) GetAcceptCount() int32 + func (x *GetSubmitRecordResponse) GetDistribution() map[int32]int32 + func (x *GetSubmitRecordResponse) GetHandle() string + func (x *GetSubmitRecordResponse) GetOjDistribution() map[string]int32 + func (x *GetSubmitRecordResponse) GetPlatform() string + func (x *GetSubmitRecordResponse) GetProfileUrl() string + func (x *GetSubmitRecordResponse) GetSubmitCount() int32 + func (x *GetSubmitRecordResponse) GetSubmitRecord() []*GetSubmitRecordResponse_SubmitRecord + func (x *GetSubmitRecordResponse) ProtoReflect() protoreflect.Message + func (x *GetSubmitRecordResponse) Reset() + func (x *GetSubmitRecordResponse) String() string + type GetSubmitRecordResponse_SubmitRecord struct + ProblemName string + ProblemUrl string + ProgrammingLanguage GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage + RunningTime int32 + SubmitTime int64 + Verdict GetSubmitRecordResponse_SubmitRecord_Verdict + func (*GetSubmitRecordResponse_SubmitRecord) Descriptor() ([]byte, []int) + func (*GetSubmitRecordResponse_SubmitRecord) ProtoMessage() + func (x *GetSubmitRecordResponse_SubmitRecord) GetProblemName() string + func (x *GetSubmitRecordResponse_SubmitRecord) GetProblemUrl() string + func (x *GetSubmitRecordResponse_SubmitRecord) GetProgrammingLanguage() GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage + func (x *GetSubmitRecordResponse_SubmitRecord) GetRunningTime() int32 + func (x *GetSubmitRecordResponse_SubmitRecord) GetSubmitTime() int64 + func (x *GetSubmitRecordResponse_SubmitRecord) GetVerdict() GetSubmitRecordResponse_SubmitRecord_Verdict + func (x *GetSubmitRecordResponse_SubmitRecord) ProtoReflect() protoreflect.Message + func (x *GetSubmitRecordResponse_SubmitRecord) Reset() + func (x *GetSubmitRecordResponse_SubmitRecord) String() string + type GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage int32 + const GetSubmitRecordResponse_SubmitRecord_C + const GetSubmitRecordResponse_SubmitRecord_CSharp + const GetSubmitRecordResponse_SubmitRecord_Cpp + const GetSubmitRecordResponse_SubmitRecord_Elixir + const GetSubmitRecordResponse_SubmitRecord_Erlang + const GetSubmitRecordResponse_SubmitRecord_Golang + const GetSubmitRecordResponse_SubmitRecord_Haskell + const GetSubmitRecordResponse_SubmitRecord_Java + const GetSubmitRecordResponse_SubmitRecord_JavaScript + const GetSubmitRecordResponse_SubmitRecord_Kotlin + const GetSubmitRecordResponse_SubmitRecord_Lua + const GetSubmitRecordResponse_SubmitRecord_ObjectiveC + const GetSubmitRecordResponse_SubmitRecord_PHP + const GetSubmitRecordResponse_SubmitRecord_Pascal + const GetSubmitRecordResponse_SubmitRecord_Python + const GetSubmitRecordResponse_SubmitRecord_Racket + const GetSubmitRecordResponse_SubmitRecord_Ruby + const GetSubmitRecordResponse_SubmitRecord_Rust + const GetSubmitRecordResponse_SubmitRecord_Scala + const GetSubmitRecordResponse_SubmitRecord_Swift + const GetSubmitRecordResponse_SubmitRecord_TypeScript + const GetSubmitRecordResponse_SubmitRecord_Unknown + func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Descriptor() protoreflect.EnumDescriptor + func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) EnumDescriptor() ([]byte, []int) + func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Type() protoreflect.EnumType + func (x GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Enum() *GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage + func (x GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Number() protoreflect.EnumNumber + func (x GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) String() string + type GetSubmitRecordResponse_SubmitRecord_Verdict int32 + const GetSubmitRecordResponse_SubmitRecord_Accepted + const GetSubmitRecordResponse_SubmitRecord_Challenged + const GetSubmitRecordResponse_SubmitRecord_CompilationError + const GetSubmitRecordResponse_SubmitRecord_Crashed + const GetSubmitRecordResponse_SubmitRecord_IdlenessLimitExceeded + const GetSubmitRecordResponse_SubmitRecord_InputPreparationCrashed + const GetSubmitRecordResponse_SubmitRecord_MemoryLimitExceeded + const GetSubmitRecordResponse_SubmitRecord_Other + const GetSubmitRecordResponse_SubmitRecord_OutputLimitExceeded + const GetSubmitRecordResponse_SubmitRecord_Partial + const GetSubmitRecordResponse_SubmitRecord_PresentationError + const GetSubmitRecordResponse_SubmitRecord_Rejected + const GetSubmitRecordResponse_SubmitRecord_RuntimeError + const GetSubmitRecordResponse_SubmitRecord_SecurityViolated + const GetSubmitRecordResponse_SubmitRecord_Skipped + const GetSubmitRecordResponse_SubmitRecord_Testing + const GetSubmitRecordResponse_SubmitRecord_TimeLimitExceeded + const GetSubmitRecordResponse_SubmitRecord_WrongAnswer + func (GetSubmitRecordResponse_SubmitRecord_Verdict) Descriptor() protoreflect.EnumDescriptor + func (GetSubmitRecordResponse_SubmitRecord_Verdict) EnumDescriptor() ([]byte, []int) + func (GetSubmitRecordResponse_SubmitRecord_Verdict) Type() protoreflect.EnumType + func (x GetSubmitRecordResponse_SubmitRecord_Verdict) Enum() *GetSubmitRecordResponse_SubmitRecord_Verdict + func (x GetSubmitRecordResponse_SubmitRecord_Verdict) Number() protoreflect.EnumNumber + func (x GetSubmitRecordResponse_SubmitRecord_Verdict) String() string + type GoodguyCrawlServiceClient interface + GetContestRecord func(ctx context.Context, in *GetContestRecordRequest, opts ...grpc.CallOption) (*GetContestRecordResponse, error) + GetDailyQuestion func(ctx context.Context, in *GetDailyQuestionRequest, opts ...grpc.CallOption) (*GetDailyQuestionResponse, error) + GetRecentContest func(ctx context.Context, in *GetRecentContestRequest, opts ...grpc.CallOption) (*GetRecentContestResponse, error) + GetSubmitRecord func(ctx context.Context, in *GetSubmitRecordRequest, opts ...grpc.CallOption) (*GetSubmitRecordResponse, error) + func NewGoodguyCrawlServiceClient(cc grpc.ClientConnInterface) GoodguyCrawlServiceClient + type GoodguyCrawlServiceServer interface + GetContestRecord func(context.Context, *GetContestRecordRequest) (*GetContestRecordResponse, error) + GetDailyQuestion func(context.Context, *GetDailyQuestionRequest) (*GetDailyQuestionResponse, error) + GetRecentContest func(context.Context, *GetRecentContestRequest) (*GetRecentContestResponse, error) + GetSubmitRecord func(context.Context, *GetSubmitRecordRequest) (*GetSubmitRecordResponse, error) + type UnimplementedGoodguyCrawlServiceServer struct + func (UnimplementedGoodguyCrawlServiceServer) GetContestRecord(context.Context, *GetContestRecordRequest) (*GetContestRecordResponse, error) + func (UnimplementedGoodguyCrawlServiceServer) GetDailyQuestion(context.Context, *GetDailyQuestionRequest) (*GetDailyQuestionResponse, error) + func (UnimplementedGoodguyCrawlServiceServer) GetRecentContest(context.Context, *GetRecentContestRequest) (*GetRecentContestResponse, error) + func (UnimplementedGoodguyCrawlServiceServer) GetSubmitRecord(context.Context, *GetSubmitRecordRequest) (*GetSubmitRecordResponse, error) + type UnsafeGoodguyCrawlServiceServer interface