Documentation
¶
Index ¶
- func RunGrpcService()
- func RunHttpService()
- type GrpcServer
- func (GrpcServer) GetContestRecord(ctx context.Context, req *proto.GetContestRecordRequest) (*proto.GetContestRecordResponse, error)
- func (GrpcServer) GetDailyQuestion(ctx context.Context, req *proto.GetDailyQuestionRequest) (*proto.GetDailyQuestionResponse, error)
- func (GrpcServer) GetRecentContest(ctx context.Context, req *proto.GetRecentContestRequest) (*proto.GetRecentContestResponse, error)
- func (GrpcServer) GetSubmitRecord(ctx context.Context, req *proto.GetSubmitRecordRequest) (*proto.GetSubmitRecordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGrpcService ¶
func RunGrpcService()
func RunHttpService ¶
func RunHttpService()
Types ¶
type GrpcServer ¶
type GrpcServer struct {
proto.UnimplementedGoodguyCrawlServiceServer
}
func (GrpcServer) GetContestRecord ¶
func (GrpcServer) GetContestRecord(ctx context.Context, req *proto.GetContestRecordRequest) (*proto.GetContestRecordResponse, error)
func (GrpcServer) GetDailyQuestion ¶
func (GrpcServer) GetDailyQuestion(ctx context.Context, req *proto.GetDailyQuestionRequest) (*proto.GetDailyQuestionResponse, error)
func (GrpcServer) GetRecentContest ¶
func (GrpcServer) GetRecentContest(ctx context.Context, req *proto.GetRecentContestRequest) (*proto.GetRecentContestResponse, error)
func (GrpcServer) GetSubmitRecord ¶
func (GrpcServer) GetSubmitRecord(ctx context.Context, req *proto.GetSubmitRecordRequest) (*proto.GetSubmitRecordResponse, error)
Click to show internal directories.
Click to hide internal directories.