gradeproto

package
v0.0.0-...-7de36fb Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gradeapi.API",
	HandlerType: (*APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RequestGrading",
			Handler:    _API_RequestGrading_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gradeapi.proto",
}

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

View Source
var File_gradeapi_proto protoreflect.FileDescriptor

Functions

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

Types

type APIClient

type APIClient interface {
	RequestGrading(ctx context.Context, in *RequestGradingRequest, opts ...grpc.CallOption) (*RequestGradingResponse, error)
}

APIClient is the client API for API 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 NewAPIClient

func NewAPIClient(cc grpc.ClientConnInterface) APIClient

type APIServer

type APIServer interface {
	RequestGrading(context.Context, *RequestGradingRequest) (*RequestGradingResponse, error)
	// contains filtered or unexported methods
}

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type RequestGradingRequest

type RequestGradingRequest struct {
	Id       int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Nonce    string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Solution []byte `protobuf:"bytes,3,opt,name=solution,proto3" json:"solution,omitempty"`
	Submit   bool   `protobuf:"varint,4,opt,name=submit,proto3" json:"submit,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGradingRequest) Descriptor deprecated

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

Deprecated: Use RequestGradingRequest.ProtoReflect.Descriptor instead.

func (*RequestGradingRequest) GetId

func (x *RequestGradingRequest) GetId() int32

func (*RequestGradingRequest) GetNonce

func (x *RequestGradingRequest) GetNonce() string

func (*RequestGradingRequest) GetSolution

func (x *RequestGradingRequest) GetSolution() []byte

func (*RequestGradingRequest) GetSubmit

func (x *RequestGradingRequest) GetSubmit() bool

func (*RequestGradingRequest) ProtoMessage

func (*RequestGradingRequest) ProtoMessage()

func (*RequestGradingRequest) ProtoReflect

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

func (*RequestGradingRequest) Reset

func (x *RequestGradingRequest) Reset()

func (*RequestGradingRequest) String

func (x *RequestGradingRequest) String() string

type RequestGradingResponse

type RequestGradingResponse struct {
	Points int32 `protobuf:"varint,1,opt,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGradingResponse) Descriptor deprecated

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

Deprecated: Use RequestGradingResponse.ProtoReflect.Descriptor instead.

func (*RequestGradingResponse) GetPoints

func (x *RequestGradingResponse) GetPoints() int32

func (*RequestGradingResponse) ProtoMessage

func (*RequestGradingResponse) ProtoMessage()

func (*RequestGradingResponse) ProtoReflect

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

func (*RequestGradingResponse) Reset

func (x *RequestGradingResponse) Reset()

func (*RequestGradingResponse) String

func (x *RequestGradingResponse) String() string

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) RequestGrading

type UnsafeAPIServer

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

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

Jump to

Keyboard shortcuts

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