proto

package
v1.7.1-0...-a1f4904 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoodguyCrawlService_GetContestRecord_FullMethodName = "/goodguy_crawl.GoodguyCrawlService/GetContestRecord"
	GoodguyCrawlService_GetSubmitRecord_FullMethodName  = "/goodguy_crawl.GoodguyCrawlService/GetSubmitRecord"
	GoodguyCrawlService_GetRecentContest_FullMethodName = "/goodguy_crawl.GoodguyCrawlService/GetRecentContest"
	GoodguyCrawlService_GetDailyQuestion_FullMethodName = "/goodguy_crawl.GoodguyCrawlService/GetDailyQuestion"
)

Variables

View Source
var (
	GetSubmitRecordResponse_SubmitRecord_Verdict_name = map[int32]string{
		0:  "Other",
		1:  "Accepted",
		2:  "WrongAnswer",
		3:  "RuntimeError",
		4:  "TimeLimitExceeded",
		5:  "MemoryLimitExceeded",
		6:  "CompilationError",
		7:  "PresentationError",
		8:  "IdlenessLimitExceeded",
		9:  "SecurityViolated",
		10: "Crashed",
		11: "InputPreparationCrashed",
		12: "Partial",
		13: "Challenged",
		14: "Skipped",
		15: "Testing",
		16: "Rejected",
		17: "OutputLimitExceeded",
	}
	GetSubmitRecordResponse_SubmitRecord_Verdict_value = map[string]int32{
		"Other":                   0,
		"Accepted":                1,
		"WrongAnswer":             2,
		"RuntimeError":            3,
		"TimeLimitExceeded":       4,
		"MemoryLimitExceeded":     5,
		"CompilationError":        6,
		"PresentationError":       7,
		"IdlenessLimitExceeded":   8,
		"SecurityViolated":        9,
		"Crashed":                 10,
		"InputPreparationCrashed": 11,
		"Partial":                 12,
		"Challenged":              13,
		"Skipped":                 14,
		"Testing":                 15,
		"Rejected":                16,
		"OutputLimitExceeded":     17,
	}
)

Enum value maps for GetSubmitRecordResponse_SubmitRecord_Verdict.

View Source
var (
	GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage_name = map[int32]string{
		0:  "Unknown",
		1:  "Cpp",
		2:  "Java",
		3:  "Python",
		4:  "Golang",
		5:  "C",
		6:  "CSharp",
		7:  "Kotlin",
		8:  "JavaScript",
		9:  "TypeScript",
		10: "Lua",
		11: "ObjectiveC",
		12: "Swift",
		13: "Rust",
		14: "Scala",
		15: "Pascal",
		16: "Haskell",
		17: "Ruby",
		18: "PHP",
		19: "Erlang",
		20: "Elixir",
		21: "Racket",
	}
	GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage_value = map[string]int32{
		"Unknown":    0,
		"Cpp":        1,
		"Java":       2,
		"Python":     3,
		"Golang":     4,
		"C":          5,
		"CSharp":     6,
		"Kotlin":     7,
		"JavaScript": 8,
		"TypeScript": 9,
		"Lua":        10,
		"ObjectiveC": 11,
		"Swift":      12,
		"Rust":       13,
		"Scala":      14,
		"Pascal":     15,
		"Haskell":    16,
		"Ruby":       17,
		"PHP":        18,
		"Erlang":     19,
		"Elixir":     20,
		"Racket":     21,
	}
)

Enum value maps for GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage.

View Source
var File_goodguy_crawl_proto protoreflect.FileDescriptor
View Source
var GoodguyCrawlService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goodguy_crawl.GoodguyCrawlService",
	HandlerType: (*GoodguyCrawlServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetContestRecord",
			Handler:    _GoodguyCrawlService_GetContestRecord_Handler,
		},
		{
			MethodName: "GetSubmitRecord",
			Handler:    _GoodguyCrawlService_GetSubmitRecord_Handler,
		},
		{
			MethodName: "GetRecentContest",
			Handler:    _GoodguyCrawlService_GetRecentContest_Handler,
		},
		{
			MethodName: "GetDailyQuestion",
			Handler:    _GoodguyCrawlService_GetDailyQuestion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "goodguy_crawl.proto",
}

GoodguyCrawlService_ServiceDesc is the grpc.ServiceDesc for GoodguyCrawlService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGoodguyCrawlServiceServer

func RegisterGoodguyCrawlServiceServer(s grpc.ServiceRegistrar, srv GoodguyCrawlServiceServer)

Types

type AuthInfo

type AuthInfo struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthInfo) Descriptor deprecated

func (*AuthInfo) Descriptor() ([]byte, []int)

Deprecated: Use AuthInfo.ProtoReflect.Descriptor instead.

func (*AuthInfo) GetPassword

func (x *AuthInfo) GetPassword() string

func (*AuthInfo) GetUsername

func (x *AuthInfo) GetUsername() string

func (*AuthInfo) ProtoMessage

func (*AuthInfo) ProtoMessage()

func (*AuthInfo) ProtoReflect

func (x *AuthInfo) ProtoReflect() protoreflect.Message

func (*AuthInfo) Reset

func (x *AuthInfo) Reset()

func (*AuthInfo) String

func (x *AuthInfo) String() string

type GetContestRecordRequest

type GetContestRecordRequest struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Handle   string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` // 用户名
	// contains filtered or unexported fields
}

func (*GetContestRecordRequest) Descriptor deprecated

func (*GetContestRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetContestRecordRequest.ProtoReflect.Descriptor instead.

func (*GetContestRecordRequest) GetHandle

func (x *GetContestRecordRequest) GetHandle() string

func (*GetContestRecordRequest) GetPlatform

func (x *GetContestRecordRequest) GetPlatform() string

func (*GetContestRecordRequest) ProtoMessage

func (*GetContestRecordRequest) ProtoMessage()

func (*GetContestRecordRequest) ProtoReflect

func (x *GetContestRecordRequest) ProtoReflect() protoreflect.Message

func (*GetContestRecordRequest) Reset

func (x *GetContestRecordRequest) Reset()

func (*GetContestRecordRequest) String

func (x *GetContestRecordRequest) String() string

type GetContestRecordResponse

type GetContestRecordResponse struct {
	ProfileUrl string                             `protobuf:"bytes,1,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"` // 用户页面URL
	Rating     int32                              `protobuf:"varint,2,opt,name=rating,proto3" json:"rating,omitempty"`                          // 当前rating 没有参加过则为0
	Length     int32                              `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"`                          // 参加比赛场次
	Record     []*GetContestRecordResponse_Record `protobuf:"bytes,4,rep,name=record,proto3" json:"record,omitempty"`
	Platform   string                             `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"`
	Handle     string                             `protobuf:"bytes,6,opt,name=handle,proto3" json:"handle,omitempty"` // 用户名
	// contains filtered or unexported fields
}

func (*GetContestRecordResponse) Descriptor deprecated

func (*GetContestRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetContestRecordResponse.ProtoReflect.Descriptor instead.

func (*GetContestRecordResponse) GetHandle

func (x *GetContestRecordResponse) GetHandle() string

func (*GetContestRecordResponse) GetLength

func (x *GetContestRecordResponse) GetLength() int32

func (*GetContestRecordResponse) GetPlatform

func (x *GetContestRecordResponse) GetPlatform() string

func (*GetContestRecordResponse) GetProfileUrl

func (x *GetContestRecordResponse) GetProfileUrl() string

func (*GetContestRecordResponse) GetRating

func (x *GetContestRecordResponse) GetRating() int32

func (*GetContestRecordResponse) GetRecord

func (*GetContestRecordResponse) ProtoMessage

func (*GetContestRecordResponse) ProtoMessage()

func (*GetContestRecordResponse) ProtoReflect

func (x *GetContestRecordResponse) ProtoReflect() protoreflect.Message

func (*GetContestRecordResponse) Reset

func (x *GetContestRecordResponse) Reset()

func (*GetContestRecordResponse) String

func (x *GetContestRecordResponse) String() string

type GetContestRecordResponse_Record

type GetContestRecordResponse_Record struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`            // 比赛名称
	Url       string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`              // 比赛链接
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 比赛时间 单位:秒
	Rating    int32  `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"`       // 结果rating
	// contains filtered or unexported fields
}

func (*GetContestRecordResponse_Record) Descriptor deprecated

func (*GetContestRecordResponse_Record) Descriptor() ([]byte, []int)

Deprecated: Use GetContestRecordResponse_Record.ProtoReflect.Descriptor instead.

func (*GetContestRecordResponse_Record) GetName

func (*GetContestRecordResponse_Record) GetRating

func (x *GetContestRecordResponse_Record) GetRating() int32

func (*GetContestRecordResponse_Record) GetTimestamp

func (x *GetContestRecordResponse_Record) GetTimestamp() int64

func (*GetContestRecordResponse_Record) GetUrl

func (*GetContestRecordResponse_Record) ProtoMessage

func (*GetContestRecordResponse_Record) ProtoMessage()

func (*GetContestRecordResponse_Record) ProtoReflect

func (*GetContestRecordResponse_Record) Reset

func (*GetContestRecordResponse_Record) String

type GetDailyQuestionRequest

type GetDailyQuestionRequest struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDailyQuestionRequest) Descriptor deprecated

func (*GetDailyQuestionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDailyQuestionRequest.ProtoReflect.Descriptor instead.

func (*GetDailyQuestionRequest) GetPlatform

func (x *GetDailyQuestionRequest) GetPlatform() string

func (*GetDailyQuestionRequest) ProtoMessage

func (*GetDailyQuestionRequest) ProtoMessage()

func (*GetDailyQuestionRequest) ProtoReflect

func (x *GetDailyQuestionRequest) ProtoReflect() protoreflect.Message

func (*GetDailyQuestionRequest) Reset

func (x *GetDailyQuestionRequest) Reset()

func (*GetDailyQuestionRequest) String

func (x *GetDailyQuestionRequest) String() string

type GetDailyQuestionResponse

type GetDailyQuestionResponse struct {
	Problem []*GetDailyQuestionResponse_Problem `protobuf:"bytes,1,rep,name=problem,proto3" json:"problem,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDailyQuestionResponse) Descriptor deprecated

func (*GetDailyQuestionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDailyQuestionResponse.ProtoReflect.Descriptor instead.

func (*GetDailyQuestionResponse) GetProblem

func (*GetDailyQuestionResponse) ProtoMessage

func (*GetDailyQuestionResponse) ProtoMessage()

func (*GetDailyQuestionResponse) ProtoReflect

func (x *GetDailyQuestionResponse) ProtoReflect() protoreflect.Message

func (*GetDailyQuestionResponse) Reset

func (x *GetDailyQuestionResponse) Reset()

func (*GetDailyQuestionResponse) String

func (x *GetDailyQuestionResponse) String() string

type GetDailyQuestionResponse_Problem

type GetDailyQuestionResponse_Problem struct {
	Platform   string            `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Url        string            `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Id         string            `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Name       string            `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Difficulty string            `protobuf:"bytes,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Extra      map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetDailyQuestionResponse_Problem) Descriptor deprecated

func (*GetDailyQuestionResponse_Problem) Descriptor() ([]byte, []int)

Deprecated: Use GetDailyQuestionResponse_Problem.ProtoReflect.Descriptor instead.

func (*GetDailyQuestionResponse_Problem) GetDifficulty

func (x *GetDailyQuestionResponse_Problem) GetDifficulty() string

func (*GetDailyQuestionResponse_Problem) GetExtra

func (*GetDailyQuestionResponse_Problem) GetId

func (*GetDailyQuestionResponse_Problem) GetName

func (*GetDailyQuestionResponse_Problem) GetPlatform

func (x *GetDailyQuestionResponse_Problem) GetPlatform() string

func (*GetDailyQuestionResponse_Problem) GetUrl

func (*GetDailyQuestionResponse_Problem) ProtoMessage

func (*GetDailyQuestionResponse_Problem) ProtoMessage()

func (*GetDailyQuestionResponse_Problem) ProtoReflect

func (*GetDailyQuestionResponse_Problem) Reset

func (*GetDailyQuestionResponse_Problem) String

type GetRecentContestRequest

type GetRecentContestRequest struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecentContestRequest) Descriptor deprecated

func (*GetRecentContestRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRecentContestRequest.ProtoReflect.Descriptor instead.

func (*GetRecentContestRequest) GetPlatform

func (x *GetRecentContestRequest) GetPlatform() string

func (*GetRecentContestRequest) ProtoMessage

func (*GetRecentContestRequest) ProtoMessage()

func (*GetRecentContestRequest) ProtoReflect

func (x *GetRecentContestRequest) ProtoReflect() protoreflect.Message

func (*GetRecentContestRequest) Reset

func (x *GetRecentContestRequest) Reset()

func (*GetRecentContestRequest) String

func (x *GetRecentContestRequest) String() string

type GetRecentContestResponse

type GetRecentContestResponse struct {
	RecentContest []*GetRecentContestResponse_Contest `protobuf:"bytes,1,rep,name=recent_contest,json=recentContest,proto3" json:"recent_contest,omitempty"`
	Platform      string                              `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecentContestResponse) Descriptor deprecated

func (*GetRecentContestResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRecentContestResponse.ProtoReflect.Descriptor instead.

func (*GetRecentContestResponse) GetPlatform

func (x *GetRecentContestResponse) GetPlatform() string

func (*GetRecentContestResponse) GetRecentContest

func (*GetRecentContestResponse) ProtoMessage

func (*GetRecentContestResponse) ProtoMessage()

func (*GetRecentContestResponse) ProtoReflect

func (x *GetRecentContestResponse) ProtoReflect() protoreflect.Message

func (*GetRecentContestResponse) Reset

func (x *GetRecentContestResponse) Reset()

func (*GetRecentContestResponse) String

func (x *GetRecentContestResponse) String() string

type GetRecentContestResponse_Contest

type GetRecentContestResponse_Contest struct {
	Name      string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`            // 比赛名称
	Url       string            `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`              // 比赛地址
	Timestamp int64             `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 比赛开始时间 单位:秒
	ExtInfo   map[string]string ``                                                                         // 额外信息
	/* 170-byte string literal not displayed */
	Duration int32 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"` // 比赛时长 单位:秒
	// contains filtered or unexported fields
}

func (*GetRecentContestResponse_Contest) Descriptor deprecated

func (*GetRecentContestResponse_Contest) Descriptor() ([]byte, []int)

Deprecated: Use GetRecentContestResponse_Contest.ProtoReflect.Descriptor instead.

func (*GetRecentContestResponse_Contest) GetDuration

func (x *GetRecentContestResponse_Contest) GetDuration() int32

func (*GetRecentContestResponse_Contest) GetExtInfo

func (x *GetRecentContestResponse_Contest) GetExtInfo() map[string]string

func (*GetRecentContestResponse_Contest) GetName

func (*GetRecentContestResponse_Contest) GetTimestamp

func (x *GetRecentContestResponse_Contest) GetTimestamp() int64

func (*GetRecentContestResponse_Contest) GetUrl

func (*GetRecentContestResponse_Contest) ProtoMessage

func (*GetRecentContestResponse_Contest) ProtoMessage()

func (*GetRecentContestResponse_Contest) ProtoReflect

func (*GetRecentContestResponse_Contest) Reset

func (*GetRecentContestResponse_Contest) String

type GetSubmitRecordRequest

type GetSubmitRecordRequest struct {
	Platform string    `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Handle   string    `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`                           // 用户名
	AuthInfo *AuthInfo `protobuf:"bytes,3,opt,name=auth_info,json=authInfo,proto3,oneof" json:"auth_info,omitempty"` // ONLY NEED FOR vjudge
	// contains filtered or unexported fields
}

func (*GetSubmitRecordRequest) Descriptor deprecated

func (*GetSubmitRecordRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSubmitRecordRequest.ProtoReflect.Descriptor instead.

func (*GetSubmitRecordRequest) GetAuthInfo

func (x *GetSubmitRecordRequest) GetAuthInfo() *AuthInfo

func (*GetSubmitRecordRequest) GetHandle

func (x *GetSubmitRecordRequest) GetHandle() string

func (*GetSubmitRecordRequest) GetPlatform

func (x *GetSubmitRecordRequest) GetPlatform() string

func (*GetSubmitRecordRequest) ProtoMessage

func (*GetSubmitRecordRequest) ProtoMessage()

func (*GetSubmitRecordRequest) ProtoReflect

func (x *GetSubmitRecordRequest) ProtoReflect() protoreflect.Message

func (*GetSubmitRecordRequest) Reset

func (x *GetSubmitRecordRequest) Reset()

func (*GetSubmitRecordRequest) String

func (x *GetSubmitRecordRequest) String() string

type GetSubmitRecordResponse

type GetSubmitRecordResponse struct {
	ProfileUrl   string          `protobuf:"bytes,1,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"`     // 用户页面URL
	AcceptCount  int32           `protobuf:"varint,2,opt,name=accept_count,json=acceptCount,proto3" json:"accept_count,omitempty"` // 用户总AC数
	SubmitCount  int32           `protobuf:"varint,3,opt,name=submit_count,json=submitCount,proto3" json:"submit_count,omitempty"` // 用户总提交数
	Distribution map[int32]int32 ``                                                                                                // 做题难度分布 有的平台才有
	/* 167-byte string literal not displayed */
	OjDistribution map[string]int32 `` // OJ做题分布 只有vjudge有
	/* 192-byte string literal not displayed */
	Platform     string                                  `protobuf:"bytes,6,opt,name=platform,proto3" json:"platform,omitempty"`
	Handle       string                                  `protobuf:"bytes,7,opt,name=handle,proto3" json:"handle,omitempty"`
	SubmitRecord []*GetSubmitRecordResponse_SubmitRecord `protobuf:"bytes,8,rep,name=submit_record,json=submitRecord,proto3" json:"submit_record,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubmitRecordResponse) Descriptor deprecated

func (*GetSubmitRecordResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetSubmitRecordResponse.ProtoReflect.Descriptor instead.

func (*GetSubmitRecordResponse) GetAcceptCount

func (x *GetSubmitRecordResponse) GetAcceptCount() int32

func (*GetSubmitRecordResponse) GetDistribution

func (x *GetSubmitRecordResponse) GetDistribution() map[int32]int32

func (*GetSubmitRecordResponse) GetHandle

func (x *GetSubmitRecordResponse) GetHandle() string

func (*GetSubmitRecordResponse) GetOjDistribution

func (x *GetSubmitRecordResponse) GetOjDistribution() map[string]int32

func (*GetSubmitRecordResponse) GetPlatform

func (x *GetSubmitRecordResponse) GetPlatform() string

func (*GetSubmitRecordResponse) GetProfileUrl

func (x *GetSubmitRecordResponse) GetProfileUrl() string

func (*GetSubmitRecordResponse) GetSubmitCount

func (x *GetSubmitRecordResponse) GetSubmitCount() int32

func (*GetSubmitRecordResponse) GetSubmitRecord

func (*GetSubmitRecordResponse) ProtoMessage

func (*GetSubmitRecordResponse) ProtoMessage()

func (*GetSubmitRecordResponse) ProtoReflect

func (x *GetSubmitRecordResponse) ProtoReflect() protoreflect.Message

func (*GetSubmitRecordResponse) Reset

func (x *GetSubmitRecordResponse) Reset()

func (*GetSubmitRecordResponse) String

func (x *GetSubmitRecordResponse) String() string

type GetSubmitRecordResponse_SubmitRecord

type GetSubmitRecordResponse_SubmitRecord struct {
	ProblemName string                                       `protobuf:"bytes,1,opt,name=problem_name,json=problemName,proto3" json:"problem_name,omitempty"` // 题目名
	ProblemUrl  string                                       `protobuf:"bytes,2,opt,name=problem_url,json=problemUrl,proto3" json:"problem_url,omitempty"`    // 题目链接
	SubmitTime  int64                                        `protobuf:"varint,3,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`   // 提交时间戳 单位秒
	Verdict     GetSubmitRecordResponse_SubmitRecord_Verdict ``                                                                                               // 提交状态
	/* 132-byte string literal not displayed */
	RunningTime         int32                                                    `protobuf:"varint,5,opt,name=running_time,json=runningTime,proto3" json:"running_time,omitempty"` // 代码运行时间 单位毫秒
	ProgrammingLanguage GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage ``                                                                                                // 提交语言
	/* 195-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetSubmitRecordResponse_SubmitRecord) Descriptor deprecated

func (*GetSubmitRecordResponse_SubmitRecord) Descriptor() ([]byte, []int)

Deprecated: Use GetSubmitRecordResponse_SubmitRecord.ProtoReflect.Descriptor instead.

func (*GetSubmitRecordResponse_SubmitRecord) GetProblemName

func (x *GetSubmitRecordResponse_SubmitRecord) GetProblemName() string

func (*GetSubmitRecordResponse_SubmitRecord) GetProblemUrl

func (x *GetSubmitRecordResponse_SubmitRecord) GetProblemUrl() string

func (*GetSubmitRecordResponse_SubmitRecord) GetProgrammingLanguage

func (*GetSubmitRecordResponse_SubmitRecord) GetRunningTime

func (x *GetSubmitRecordResponse_SubmitRecord) GetRunningTime() int32

func (*GetSubmitRecordResponse_SubmitRecord) GetSubmitTime

func (x *GetSubmitRecordResponse_SubmitRecord) GetSubmitTime() int64

func (*GetSubmitRecordResponse_SubmitRecord) GetVerdict

func (*GetSubmitRecordResponse_SubmitRecord) ProtoMessage

func (*GetSubmitRecordResponse_SubmitRecord) ProtoMessage()

func (*GetSubmitRecordResponse_SubmitRecord) ProtoReflect

func (*GetSubmitRecordResponse_SubmitRecord) Reset

func (*GetSubmitRecordResponse_SubmitRecord) String

type GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage

type GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage int32
const (
	GetSubmitRecordResponse_SubmitRecord_Unknown    GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 0
	GetSubmitRecordResponse_SubmitRecord_Cpp        GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 1
	GetSubmitRecordResponse_SubmitRecord_Java       GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 2
	GetSubmitRecordResponse_SubmitRecord_Python     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 3
	GetSubmitRecordResponse_SubmitRecord_Golang     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 4
	GetSubmitRecordResponse_SubmitRecord_C          GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 5
	GetSubmitRecordResponse_SubmitRecord_CSharp     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 6
	GetSubmitRecordResponse_SubmitRecord_Kotlin     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 7
	GetSubmitRecordResponse_SubmitRecord_JavaScript GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 8
	GetSubmitRecordResponse_SubmitRecord_TypeScript GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 9
	GetSubmitRecordResponse_SubmitRecord_Lua        GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 10
	GetSubmitRecordResponse_SubmitRecord_ObjectiveC GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 11
	GetSubmitRecordResponse_SubmitRecord_Swift      GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 12
	GetSubmitRecordResponse_SubmitRecord_Rust       GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 13
	GetSubmitRecordResponse_SubmitRecord_Scala      GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 14
	GetSubmitRecordResponse_SubmitRecord_Pascal     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 15
	GetSubmitRecordResponse_SubmitRecord_Haskell    GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 16
	GetSubmitRecordResponse_SubmitRecord_Ruby       GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 17
	GetSubmitRecordResponse_SubmitRecord_PHP        GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 18
	GetSubmitRecordResponse_SubmitRecord_Erlang     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 19
	GetSubmitRecordResponse_SubmitRecord_Elixir     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 20
	GetSubmitRecordResponse_SubmitRecord_Racket     GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage = 21
)

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Descriptor

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Enum

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) EnumDescriptor deprecated

Deprecated: Use GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage.Descriptor instead.

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Number

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) String

func (GetSubmitRecordResponse_SubmitRecord_ProgrammingLanguage) Type

type GetSubmitRecordResponse_SubmitRecord_Verdict

type GetSubmitRecordResponse_SubmitRecord_Verdict int32
const (
	GetSubmitRecordResponse_SubmitRecord_Other                   GetSubmitRecordResponse_SubmitRecord_Verdict = 0
	GetSubmitRecordResponse_SubmitRecord_Accepted                GetSubmitRecordResponse_SubmitRecord_Verdict = 1
	GetSubmitRecordResponse_SubmitRecord_WrongAnswer             GetSubmitRecordResponse_SubmitRecord_Verdict = 2
	GetSubmitRecordResponse_SubmitRecord_RuntimeError            GetSubmitRecordResponse_SubmitRecord_Verdict = 3
	GetSubmitRecordResponse_SubmitRecord_TimeLimitExceeded       GetSubmitRecordResponse_SubmitRecord_Verdict = 4
	GetSubmitRecordResponse_SubmitRecord_MemoryLimitExceeded     GetSubmitRecordResponse_SubmitRecord_Verdict = 5
	GetSubmitRecordResponse_SubmitRecord_CompilationError        GetSubmitRecordResponse_SubmitRecord_Verdict = 6
	GetSubmitRecordResponse_SubmitRecord_PresentationError       GetSubmitRecordResponse_SubmitRecord_Verdict = 7
	GetSubmitRecordResponse_SubmitRecord_IdlenessLimitExceeded   GetSubmitRecordResponse_SubmitRecord_Verdict = 8
	GetSubmitRecordResponse_SubmitRecord_SecurityViolated        GetSubmitRecordResponse_SubmitRecord_Verdict = 9
	GetSubmitRecordResponse_SubmitRecord_Crashed                 GetSubmitRecordResponse_SubmitRecord_Verdict = 10
	GetSubmitRecordResponse_SubmitRecord_InputPreparationCrashed GetSubmitRecordResponse_SubmitRecord_Verdict = 11
	GetSubmitRecordResponse_SubmitRecord_Partial                 GetSubmitRecordResponse_SubmitRecord_Verdict = 12
	GetSubmitRecordResponse_SubmitRecord_Challenged              GetSubmitRecordResponse_SubmitRecord_Verdict = 13
	GetSubmitRecordResponse_SubmitRecord_Skipped                 GetSubmitRecordResponse_SubmitRecord_Verdict = 14
	GetSubmitRecordResponse_SubmitRecord_Testing                 GetSubmitRecordResponse_SubmitRecord_Verdict = 15
	GetSubmitRecordResponse_SubmitRecord_Rejected                GetSubmitRecordResponse_SubmitRecord_Verdict = 16
	GetSubmitRecordResponse_SubmitRecord_OutputLimitExceeded     GetSubmitRecordResponse_SubmitRecord_Verdict = 17
)

func (GetSubmitRecordResponse_SubmitRecord_Verdict) Descriptor

func (GetSubmitRecordResponse_SubmitRecord_Verdict) Enum

func (GetSubmitRecordResponse_SubmitRecord_Verdict) EnumDescriptor deprecated

func (GetSubmitRecordResponse_SubmitRecord_Verdict) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetSubmitRecordResponse_SubmitRecord_Verdict.Descriptor instead.

func (GetSubmitRecordResponse_SubmitRecord_Verdict) Number

func (GetSubmitRecordResponse_SubmitRecord_Verdict) String

func (GetSubmitRecordResponse_SubmitRecord_Verdict) Type

type GoodguyCrawlServiceClient

type GoodguyCrawlServiceClient interface {
	GetContestRecord(ctx context.Context, in *GetContestRecordRequest, opts ...grpc.CallOption) (*GetContestRecordResponse, error)
	GetSubmitRecord(ctx context.Context, in *GetSubmitRecordRequest, opts ...grpc.CallOption) (*GetSubmitRecordResponse, error)
	GetRecentContest(ctx context.Context, in *GetRecentContestRequest, opts ...grpc.CallOption) (*GetRecentContestResponse, error)
	GetDailyQuestion(ctx context.Context, in *GetDailyQuestionRequest, opts ...grpc.CallOption) (*GetDailyQuestionResponse, error)
}

GoodguyCrawlServiceClient is the client API for GoodguyCrawlService 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.

type GoodguyCrawlServiceServer

type GoodguyCrawlServiceServer interface {
	GetContestRecord(context.Context, *GetContestRecordRequest) (*GetContestRecordResponse, error)
	GetSubmitRecord(context.Context, *GetSubmitRecordRequest) (*GetSubmitRecordResponse, error)
	GetRecentContest(context.Context, *GetRecentContestRequest) (*GetRecentContestResponse, error)
	GetDailyQuestion(context.Context, *GetDailyQuestionRequest) (*GetDailyQuestionResponse, error)
	// contains filtered or unexported methods
}

GoodguyCrawlServiceServer is the server API for GoodguyCrawlService service. All implementations must embed UnimplementedGoodguyCrawlServiceServer for forward compatibility

type UnimplementedGoodguyCrawlServiceServer

type UnimplementedGoodguyCrawlServiceServer struct {
}

UnimplementedGoodguyCrawlServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGoodguyCrawlServiceServer) GetContestRecord

func (UnimplementedGoodguyCrawlServiceServer) GetDailyQuestion

func (UnimplementedGoodguyCrawlServiceServer) GetRecentContest

func (UnimplementedGoodguyCrawlServiceServer) GetSubmitRecord

type UnsafeGoodguyCrawlServiceServer

type UnsafeGoodguyCrawlServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGoodguyCrawlServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoodguyCrawlServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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