Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer)
- type CreateSessionReply
- func (*CreateSessionReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSessionReply) GetNonce() string
- func (*CreateSessionReply) ProtoMessage()
- func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
- func (x *CreateSessionReply) Reset()
- func (x *CreateSessionReply) String() string
- type HelloReply
- type HelloRequest
- type ReviewServiceClient
- type ReviewServiceServer
- type UnimplementedReviewServiceServer
- func (UnimplementedReviewServiceServer) CreateSession(context.Context, *Unit) (*CreateSessionReply, error)
- func (UnimplementedReviewServiceServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
- func (UnimplementedReviewServiceServer) UploadDiff(context.Context, *UploadDiffRequest) (*Unit, error)
- func (UnimplementedReviewServiceServer) VerifySession(context.Context, *VerifySessionRequest) (*Unit, error)
- type Unit
- type UnsafeReviewServiceServer
- type UploadDiffRequest
- func (*UploadDiffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadDiffRequest) GetDiff() string
- func (x *UploadDiffRequest) GetUser() string
- func (*UploadDiffRequest) ProtoMessage()
- func (x *UploadDiffRequest) ProtoReflect() protoreflect.Message
- func (x *UploadDiffRequest) Reset()
- func (x *UploadDiffRequest) String() string
- type VerifySessionRequest
- func (*VerifySessionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifySessionRequest) GetSignedNonce() string
- func (x *VerifySessionRequest) GetUser() string
- func (*VerifySessionRequest) ProtoMessage()
- func (x *VerifySessionRequest) ProtoReflect() protoreflect.Message
- func (x *VerifySessionRequest) Reset()
- func (x *VerifySessionRequest) String() string
Constants ¶
const ( ReviewService_SayHello_FullMethodName = "/review_service.ReviewService/SayHello" ReviewService_UploadDiff_FullMethodName = "/review_service.ReviewService/UploadDiff" ReviewService_CreateSession_FullMethodName = "/review_service.ReviewService/CreateSession" ReviewService_VerifySession_FullMethodName = "/review_service.ReviewService/VerifySession" )
Variables ¶
var File_review_tool_proto protoreflect.FileDescriptor
var ReviewService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "review_service.ReviewService", HandlerType: (*ReviewServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHello", Handler: _ReviewService_SayHello_Handler, }, { MethodName: "UploadDiff", Handler: _ReviewService_UploadDiff_Handler, }, { MethodName: "CreateSession", Handler: _ReviewService_CreateSession_Handler, }, { MethodName: "VerifySession", Handler: _ReviewService_VerifySession_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "review_tool.proto", }
ReviewService_ServiceDesc is the grpc.ServiceDesc for ReviewService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReviewServiceServer ¶
func RegisterReviewServiceServer(s grpc.ServiceRegistrar, srv ReviewServiceServer)
Types ¶
type CreateSessionReply ¶
type CreateSessionReply struct { Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*CreateSessionReply) Descriptor
deprecated
func (*CreateSessionReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSessionReply.ProtoReflect.Descriptor instead.
func (*CreateSessionReply) GetNonce ¶
func (x *CreateSessionReply) GetNonce() string
func (*CreateSessionReply) ProtoMessage ¶
func (*CreateSessionReply) ProtoMessage()
func (*CreateSessionReply) ProtoReflect ¶
func (x *CreateSessionReply) ProtoReflect() protoreflect.Message
func (*CreateSessionReply) Reset ¶
func (x *CreateSessionReply) Reset()
func (*CreateSessionReply) String ¶
func (x *CreateSessionReply) String() string
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type ReviewServiceClient ¶
type ReviewServiceClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) UploadDiff(ctx context.Context, in *UploadDiffRequest, opts ...grpc.CallOption) (*Unit, error) CreateSession(ctx context.Context, in *Unit, opts ...grpc.CallOption) (*CreateSessionReply, error) VerifySession(ctx context.Context, in *VerifySessionRequest, opts ...grpc.CallOption) (*Unit, error) }
ReviewServiceClient is the client API for ReviewService 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 NewReviewServiceClient ¶
func NewReviewServiceClient(cc grpc.ClientConnInterface) ReviewServiceClient
type ReviewServiceServer ¶
type ReviewServiceServer interface { SayHello(context.Context, *HelloRequest) (*HelloReply, error) UploadDiff(context.Context, *UploadDiffRequest) (*Unit, error) CreateSession(context.Context, *Unit) (*CreateSessionReply, error) VerifySession(context.Context, *VerifySessionRequest) (*Unit, error) // contains filtered or unexported methods }
ReviewServiceServer is the server API for ReviewService service. All implementations must embed UnimplementedReviewServiceServer for forward compatibility.
type UnimplementedReviewServiceServer ¶
type UnimplementedReviewServiceServer struct{}
UnimplementedReviewServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedReviewServiceServer) CreateSession ¶
func (UnimplementedReviewServiceServer) CreateSession(context.Context, *Unit) (*CreateSessionReply, error)
func (UnimplementedReviewServiceServer) SayHello ¶
func (UnimplementedReviewServiceServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
func (UnimplementedReviewServiceServer) UploadDiff ¶
func (UnimplementedReviewServiceServer) UploadDiff(context.Context, *UploadDiffRequest) (*Unit, error)
func (UnimplementedReviewServiceServer) VerifySession ¶
func (UnimplementedReviewServiceServer) VerifySession(context.Context, *VerifySessionRequest) (*Unit, error)
type Unit ¶
type Unit struct {
// contains filtered or unexported fields
}
func (*Unit) Descriptor
deprecated
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
func (*Unit) ProtoReflect ¶
func (x *Unit) ProtoReflect() protoreflect.Message
type UnsafeReviewServiceServer ¶
type UnsafeReviewServiceServer interface {
// contains filtered or unexported methods
}
UnsafeReviewServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReviewServiceServer will result in compilation errors.
type UploadDiffRequest ¶
type UploadDiffRequest struct { Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*UploadDiffRequest) Descriptor
deprecated
func (*UploadDiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadDiffRequest.ProtoReflect.Descriptor instead.
func (*UploadDiffRequest) GetDiff ¶
func (x *UploadDiffRequest) GetDiff() string
func (*UploadDiffRequest) GetUser ¶
func (x *UploadDiffRequest) GetUser() string
func (*UploadDiffRequest) ProtoMessage ¶
func (*UploadDiffRequest) ProtoMessage()
func (*UploadDiffRequest) ProtoReflect ¶
func (x *UploadDiffRequest) ProtoReflect() protoreflect.Message
func (*UploadDiffRequest) Reset ¶
func (x *UploadDiffRequest) Reset()
func (*UploadDiffRequest) String ¶
func (x *UploadDiffRequest) String() string
type VerifySessionRequest ¶
type VerifySessionRequest struct { SignedNonce string `protobuf:"bytes,1,opt,name=signedNonce,proto3" json:"signedNonce,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*VerifySessionRequest) Descriptor
deprecated
func (*VerifySessionRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifySessionRequest.ProtoReflect.Descriptor instead.
func (*VerifySessionRequest) GetSignedNonce ¶
func (x *VerifySessionRequest) GetSignedNonce() string
func (*VerifySessionRequest) GetUser ¶
func (x *VerifySessionRequest) GetUser() string
func (*VerifySessionRequest) ProtoMessage ¶
func (*VerifySessionRequest) ProtoMessage()
func (*VerifySessionRequest) ProtoReflect ¶
func (x *VerifySessionRequest) ProtoReflect() protoreflect.Message
func (*VerifySessionRequest) Reset ¶
func (x *VerifySessionRequest) Reset()
func (*VerifySessionRequest) String ¶
func (x *VerifySessionRequest) String() string