mock

package
v15.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_praefect_mock_mock_proto protoreflect.FileDescriptor
View Source
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,
		},
		{
			MethodName: "RepoMaintenanceUnary",
			Handler:    _SimpleService_RepoMaintenanceUnary_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)
	// RepoMaintenanceUnary is a unary RPC that maintains a repo
	RepoMaintenanceUnary(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.

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)
	// RepoMaintenanceUnary is a unary RPC that maintains a repo
	RepoMaintenanceUnary(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) RepoMaintenanceUnary

func (UnimplementedSimpleServiceServer) RepoMutatorUnary

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.

Jump to

Keyboard shortcuts

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