Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_praefect_mock_mock_proto protoreflect.FileDescriptor
var SimpleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mock.SimpleService", HandlerType: (*SimpleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RepoAccessorUnary", Handler: _SimpleService_RepoAccessorUnary_Handler, }, { MethodName: "RepoMutatorUnary", Handler: _SimpleService_RepoMutatorUnary_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "praefect/mock/mock.proto", }
SimpleService_ServiceDesc is the grpc.ServiceDesc for SimpleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSimpleServiceServer ¶
func RegisterSimpleServiceServer(s grpc.ServiceRegistrar, srv SimpleServiceServer)
Types ¶
type RepoRequest ¶
type RepoRequest struct { Repo *gitalypb.Repository `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*RepoRequest) Descriptor
deprecated
func (*RepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use RepoRequest.ProtoReflect.Descriptor instead.
func (*RepoRequest) GetRepo ¶
func (x *RepoRequest) GetRepo() *gitalypb.Repository
func (*RepoRequest) ProtoMessage ¶
func (*RepoRequest) ProtoMessage()
func (*RepoRequest) ProtoReflect ¶
func (x *RepoRequest) ProtoReflect() protoreflect.Message
func (*RepoRequest) Reset ¶
func (x *RepoRequest) Reset()
func (*RepoRequest) String ¶
func (x *RepoRequest) String() string
type SimpleServiceClient ¶
type SimpleServiceClient interface { // RepoAccessorUnary is a unary RPC that accesses a repo RepoAccessorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // RepoMutatorUnary is a unary RPC that mutates a repo RepoMutatorUnary(ctx context.Context, in *RepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SimpleServiceClient is the client API for SimpleService 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 NewSimpleServiceClient ¶
func NewSimpleServiceClient(cc grpc.ClientConnInterface) SimpleServiceClient
type SimpleServiceServer ¶
type SimpleServiceServer interface { // RepoAccessorUnary is a unary RPC that accesses a repo RepoAccessorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) // RepoMutatorUnary is a unary RPC that mutates a repo RepoMutatorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
SimpleServiceServer is the server API for SimpleService service. All implementations must embed UnimplementedSimpleServiceServer for forward compatibility
type UnimplementedSimpleServiceServer ¶
type UnimplementedSimpleServiceServer struct { }
UnimplementedSimpleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSimpleServiceServer) RepoAccessorUnary ¶
func (UnimplementedSimpleServiceServer) RepoAccessorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error)
func (UnimplementedSimpleServiceServer) RepoMutatorUnary ¶
func (UnimplementedSimpleServiceServer) RepoMutatorUnary(context.Context, *RepoRequest) (*emptypb.Empty, error)
type UnsafeSimpleServiceServer ¶
type UnsafeSimpleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSimpleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SimpleServiceServer will result in compilation errors.