Documentation ¶
Index ¶
- Variables
- func RegisterJudgerHTTPServer(s *http.Server, srv JudgerHTTPServer)
- func RegisterJudgerServer(s grpc.ServiceRegistrar, srv JudgerServer)
- type DeleteJudgerReply
- type DeleteJudgerRequest
- type GetJudgerReply
- type GetJudgerRequest
- type JudgerClient
- type JudgerHTTPClient
- type JudgerHTTPClientImpl
- type JudgerHTTPServer
- type JudgerServer
- type JudgerStatus
- func (*JudgerStatus) Descriptor() ([]byte, []int)deprecated
- func (x *JudgerStatus) GetCurrentTasksAmount() int64
- func (x *JudgerStatus) GetEstimateTime() float64
- func (x *JudgerStatus) GetStatus() int64
- func (*JudgerStatus) ProtoMessage()
- func (x *JudgerStatus) ProtoReflect() protoreflect.Message
- func (x *JudgerStatus) Reset()
- func (x *JudgerStatus) String() string
- type ListJudgerReply
- type ListJudgerRequest
- type PingJudgerReply
- func (*PingJudgerReply) Descriptor() ([]byte, []int)deprecated
- func (x *PingJudgerReply) GetData() *JudgerStatus
- func (x *PingJudgerReply) GetId() int64
- func (*PingJudgerReply) ProtoMessage()
- func (x *PingJudgerReply) ProtoReflect() protoreflect.Message
- func (x *PingJudgerReply) Reset()
- func (x *PingJudgerReply) String() string
- type PingJudgerRequest
- type SubmitJudgerReply
- func (*SubmitJudgerReply) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitJudgerReply) GetCode() int64
- func (x *SubmitJudgerReply) GetReceived() string
- func (*SubmitJudgerReply) ProtoMessage()
- func (x *SubmitJudgerReply) ProtoReflect() protoreflect.Message
- func (x *SubmitJudgerReply) Reset()
- func (x *SubmitJudgerReply) String() string
- type SubmitJudgerRequest
- func (*SubmitJudgerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitJudgerRequest) GetPayload() *proto.JudgeRequestProto
- func (*SubmitJudgerRequest) ProtoMessage()
- func (x *SubmitJudgerRequest) ProtoReflect() protoreflect.Message
- func (x *SubmitJudgerRequest) Reset()
- func (x *SubmitJudgerRequest) String() string
- type UnimplementedJudgerServer
- type UnsafeJudgerServer
Constants ¶
This section is empty.
Variables ¶
var File_judger_v1_judger_proto protoreflect.FileDescriptor
var Judger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.judger.v1.Judger", HandlerType: (*JudgerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Judger_Ping_Handler, }, { MethodName: "Submit", Handler: _Judger_Submit_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "judger/v1/judger.proto", }
Judger_ServiceDesc is the grpc.ServiceDesc for Judger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJudgerHTTPServer ¶
func RegisterJudgerHTTPServer(s *http.Server, srv JudgerHTTPServer)
func RegisterJudgerServer ¶
func RegisterJudgerServer(s grpc.ServiceRegistrar, srv JudgerServer)
Types ¶
type DeleteJudgerReply ¶
type DeleteJudgerReply struct {
// contains filtered or unexported fields
}
func (*DeleteJudgerReply) Descriptor
deprecated
func (*DeleteJudgerReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJudgerReply.ProtoReflect.Descriptor instead.
func (*DeleteJudgerReply) ProtoMessage ¶
func (*DeleteJudgerReply) ProtoMessage()
func (*DeleteJudgerReply) ProtoReflect ¶
func (x *DeleteJudgerReply) ProtoReflect() protoreflect.Message
func (*DeleteJudgerReply) Reset ¶
func (x *DeleteJudgerReply) Reset()
func (*DeleteJudgerReply) String ¶
func (x *DeleteJudgerReply) String() string
type DeleteJudgerRequest ¶
type DeleteJudgerRequest struct {
// contains filtered or unexported fields
}
func (*DeleteJudgerRequest) Descriptor
deprecated
func (*DeleteJudgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJudgerRequest.ProtoReflect.Descriptor instead.
func (*DeleteJudgerRequest) ProtoMessage ¶
func (*DeleteJudgerRequest) ProtoMessage()
func (*DeleteJudgerRequest) ProtoReflect ¶
func (x *DeleteJudgerRequest) ProtoReflect() protoreflect.Message
func (*DeleteJudgerRequest) Reset ¶
func (x *DeleteJudgerRequest) Reset()
func (*DeleteJudgerRequest) String ¶
func (x *DeleteJudgerRequest) String() string
type GetJudgerReply ¶
type GetJudgerReply struct {
// contains filtered or unexported fields
}
func (*GetJudgerReply) Descriptor
deprecated
func (*GetJudgerReply) Descriptor() ([]byte, []int)
Deprecated: Use GetJudgerReply.ProtoReflect.Descriptor instead.
func (*GetJudgerReply) ProtoMessage ¶
func (*GetJudgerReply) ProtoMessage()
func (*GetJudgerReply) ProtoReflect ¶
func (x *GetJudgerReply) ProtoReflect() protoreflect.Message
func (*GetJudgerReply) Reset ¶
func (x *GetJudgerReply) Reset()
func (*GetJudgerReply) String ¶
func (x *GetJudgerReply) String() string
type GetJudgerRequest ¶
type GetJudgerRequest struct {
// contains filtered or unexported fields
}
func (*GetJudgerRequest) Descriptor
deprecated
func (*GetJudgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetJudgerRequest.ProtoReflect.Descriptor instead.
func (*GetJudgerRequest) ProtoMessage ¶
func (*GetJudgerRequest) ProtoMessage()
func (*GetJudgerRequest) ProtoReflect ¶
func (x *GetJudgerRequest) ProtoReflect() protoreflect.Message
func (*GetJudgerRequest) Reset ¶
func (x *GetJudgerRequest) Reset()
func (*GetJudgerRequest) String ¶
func (x *GetJudgerRequest) String() string
type JudgerClient ¶
type JudgerClient interface { Ping(ctx context.Context, in *PingJudgerRequest, opts ...grpc.CallOption) (*PingJudgerReply, error) Submit(ctx context.Context, in *SubmitJudgerRequest, opts ...grpc.CallOption) (*SubmitJudgerReply, error) }
JudgerClient is the client API for Judger 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 NewJudgerClient ¶
func NewJudgerClient(cc grpc.ClientConnInterface) JudgerClient
type JudgerHTTPClient ¶
type JudgerHTTPClient interface { Ping(ctx context.Context, req *PingJudgerRequest, opts ...http.CallOption) (rsp *PingJudgerReply, err error) Submit(ctx context.Context, req *SubmitJudgerRequest, opts ...http.CallOption) (rsp *SubmitJudgerReply, err error) }
func NewJudgerHTTPClient ¶
func NewJudgerHTTPClient(client *http.Client) JudgerHTTPClient
type JudgerHTTPClientImpl ¶
type JudgerHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*JudgerHTTPClientImpl) Ping ¶
func (c *JudgerHTTPClientImpl) Ping(ctx context.Context, in *PingJudgerRequest, opts ...http.CallOption) (*PingJudgerReply, error)
func (*JudgerHTTPClientImpl) Submit ¶
func (c *JudgerHTTPClientImpl) Submit(ctx context.Context, in *SubmitJudgerRequest, opts ...http.CallOption) (*SubmitJudgerReply, error)
type JudgerHTTPServer ¶
type JudgerHTTPServer interface { Ping(context.Context, *PingJudgerRequest) (*PingJudgerReply, error) Submit(context.Context, *SubmitJudgerRequest) (*SubmitJudgerReply, error) }
type JudgerServer ¶
type JudgerServer interface { Ping(context.Context, *PingJudgerRequest) (*PingJudgerReply, error) Submit(context.Context, *SubmitJudgerRequest) (*SubmitJudgerReply, error) // contains filtered or unexported methods }
JudgerServer is the server API for Judger service. All implementations must embed UnimplementedJudgerServer for forward compatibility
type JudgerStatus ¶
type JudgerStatus struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` CurrentTasksAmount int64 `protobuf:"varint,2,opt,name=current_tasks_amount,json=currentTasksAmount,proto3" json:"current_tasks_amount,omitempty"` EstimateTime float64 `protobuf:"fixed64,3,opt,name=estimate_time,json=estimateTime,proto3" json:"estimate_time,omitempty"` // contains filtered or unexported fields }
JudgerStatus is a struct representing running status of current judger
func (*JudgerStatus) Descriptor
deprecated
func (*JudgerStatus) Descriptor() ([]byte, []int)
Deprecated: Use JudgerStatus.ProtoReflect.Descriptor instead.
func (*JudgerStatus) GetCurrentTasksAmount ¶
func (x *JudgerStatus) GetCurrentTasksAmount() int64
func (*JudgerStatus) GetEstimateTime ¶
func (x *JudgerStatus) GetEstimateTime() float64
func (*JudgerStatus) GetStatus ¶
func (x *JudgerStatus) GetStatus() int64
func (*JudgerStatus) ProtoMessage ¶
func (*JudgerStatus) ProtoMessage()
func (*JudgerStatus) ProtoReflect ¶
func (x *JudgerStatus) ProtoReflect() protoreflect.Message
func (*JudgerStatus) Reset ¶
func (x *JudgerStatus) Reset()
func (*JudgerStatus) String ¶
func (x *JudgerStatus) String() string
type ListJudgerReply ¶
type ListJudgerReply struct {
// contains filtered or unexported fields
}
func (*ListJudgerReply) Descriptor
deprecated
func (*ListJudgerReply) Descriptor() ([]byte, []int)
Deprecated: Use ListJudgerReply.ProtoReflect.Descriptor instead.
func (*ListJudgerReply) ProtoMessage ¶
func (*ListJudgerReply) ProtoMessage()
func (*ListJudgerReply) ProtoReflect ¶
func (x *ListJudgerReply) ProtoReflect() protoreflect.Message
func (*ListJudgerReply) Reset ¶
func (x *ListJudgerReply) Reset()
func (*ListJudgerReply) String ¶
func (x *ListJudgerReply) String() string
type ListJudgerRequest ¶
type ListJudgerRequest struct {
// contains filtered or unexported fields
}
func (*ListJudgerRequest) Descriptor
deprecated
func (*ListJudgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListJudgerRequest.ProtoReflect.Descriptor instead.
func (*ListJudgerRequest) ProtoMessage ¶
func (*ListJudgerRequest) ProtoMessage()
func (*ListJudgerRequest) ProtoReflect ¶
func (x *ListJudgerRequest) ProtoReflect() protoreflect.Message
func (*ListJudgerRequest) Reset ¶
func (x *ListJudgerRequest) Reset()
func (*ListJudgerRequest) String ¶
func (x *ListJudgerRequest) String() string
type PingJudgerReply ¶
type PingJudgerReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Data *JudgerStatus `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PingJudgerReply) Descriptor
deprecated
func (*PingJudgerReply) Descriptor() ([]byte, []int)
Deprecated: Use PingJudgerReply.ProtoReflect.Descriptor instead.
func (*PingJudgerReply) GetData ¶
func (x *PingJudgerReply) GetData() *JudgerStatus
func (*PingJudgerReply) GetId ¶
func (x *PingJudgerReply) GetId() int64
func (*PingJudgerReply) ProtoMessage ¶
func (*PingJudgerReply) ProtoMessage()
func (*PingJudgerReply) ProtoReflect ¶
func (x *PingJudgerReply) ProtoReflect() protoreflect.Message
func (*PingJudgerReply) Reset ¶
func (x *PingJudgerReply) Reset()
func (*PingJudgerReply) String ¶
func (x *PingJudgerReply) String() string
type PingJudgerRequest ¶
type PingJudgerRequest struct {
// contains filtered or unexported fields
}
func (*PingJudgerRequest) Descriptor
deprecated
func (*PingJudgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingJudgerRequest.ProtoReflect.Descriptor instead.
func (*PingJudgerRequest) ProtoMessage ¶
func (*PingJudgerRequest) ProtoMessage()
func (*PingJudgerRequest) ProtoReflect ¶
func (x *PingJudgerRequest) ProtoReflect() protoreflect.Message
func (*PingJudgerRequest) Reset ¶
func (x *PingJudgerRequest) Reset()
func (*PingJudgerRequest) String ¶
func (x *PingJudgerRequest) String() string
type SubmitJudgerReply ¶
type SubmitJudgerReply struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Received string `protobuf:"bytes,2,opt,name=received,proto3" json:"received,omitempty"` // contains filtered or unexported fields }
func (*SubmitJudgerReply) Descriptor
deprecated
func (*SubmitJudgerReply) Descriptor() ([]byte, []int)
Deprecated: Use SubmitJudgerReply.ProtoReflect.Descriptor instead.
func (*SubmitJudgerReply) GetCode ¶
func (x *SubmitJudgerReply) GetCode() int64
func (*SubmitJudgerReply) GetReceived ¶
func (x *SubmitJudgerReply) GetReceived() string
func (*SubmitJudgerReply) ProtoMessage ¶
func (*SubmitJudgerReply) ProtoMessage()
func (*SubmitJudgerReply) ProtoReflect ¶
func (x *SubmitJudgerReply) ProtoReflect() protoreflect.Message
func (*SubmitJudgerReply) Reset ¶
func (x *SubmitJudgerReply) Reset()
func (*SubmitJudgerReply) String ¶
func (x *SubmitJudgerReply) String() string
type SubmitJudgerRequest ¶
type SubmitJudgerRequest struct { Payload *proto.JudgeRequestProto `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*SubmitJudgerRequest) Descriptor
deprecated
func (*SubmitJudgerRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubmitJudgerRequest.ProtoReflect.Descriptor instead.
func (*SubmitJudgerRequest) GetPayload ¶
func (x *SubmitJudgerRequest) GetPayload() *proto.JudgeRequestProto
func (*SubmitJudgerRequest) ProtoMessage ¶
func (*SubmitJudgerRequest) ProtoMessage()
func (*SubmitJudgerRequest) ProtoReflect ¶
func (x *SubmitJudgerRequest) ProtoReflect() protoreflect.Message
func (*SubmitJudgerRequest) Reset ¶
func (x *SubmitJudgerRequest) Reset()
func (*SubmitJudgerRequest) String ¶
func (x *SubmitJudgerRequest) String() string
type UnimplementedJudgerServer ¶
type UnimplementedJudgerServer struct { }
UnimplementedJudgerServer must be embedded to have forward compatible implementations.
func (UnimplementedJudgerServer) Ping ¶
func (UnimplementedJudgerServer) Ping(context.Context, *PingJudgerRequest) (*PingJudgerReply, error)
func (UnimplementedJudgerServer) Submit ¶
func (UnimplementedJudgerServer) Submit(context.Context, *SubmitJudgerRequest) (*SubmitJudgerReply, error)
type UnsafeJudgerServer ¶
type UnsafeJudgerServer interface {
// contains filtered or unexported methods
}
UnsafeJudgerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JudgerServer will result in compilation errors.