proto

package module
v0.0.0-...-856df69 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_review_tool_proto protoreflect.FileDescriptor
View Source
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.

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) SayHello

func (UnimplementedReviewServiceServer) UploadDiff

func (UnimplementedReviewServiceServer) VerifySession

type Unit

type Unit struct {
	// contains filtered or unexported fields
}

func (*Unit) Descriptor deprecated

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

Deprecated: Use Unit.ProtoReflect.Descriptor instead.

func (*Unit) ProtoMessage

func (*Unit) ProtoMessage()

func (*Unit) ProtoReflect

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

func (*Unit) Reset

func (x *Unit) Reset()

func (*Unit) String

func (x *Unit) String() string

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

Jump to

Keyboard shortcuts

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