Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUnitTestServiceServer(s grpc.ServiceRegistrar, srv UnitTestServiceServer)
- type UnimplementedUnitTestServiceServer
- type UnitTestRequest
- func (*UnitTestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnitTestRequest) GetTestDescription() string
- func (x *UnitTestRequest) GetTestName() string
- func (*UnitTestRequest) ProtoMessage()
- func (x *UnitTestRequest) ProtoReflect() protoreflect.Message
- func (x *UnitTestRequest) Reset()
- func (x *UnitTestRequest) String() string
- type UnitTestResponse
- func (*UnitTestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnitTestResponse) GetMessage() string
- func (x *UnitTestResponse) GetSuccess() bool
- func (*UnitTestResponse) ProtoMessage()
- func (x *UnitTestResponse) ProtoReflect() protoreflect.Message
- func (x *UnitTestResponse) Reset()
- func (x *UnitTestResponse) String() string
- type UnitTestServiceClient
- type UnitTestServiceServer
- type UnsafeUnitTestServiceServer
Constants ¶
const (
UnitTestService_RunTest_FullMethodName = "/prototest.UnitTestService/RunTest"
)
Variables ¶
var File_pkg_grpclib_test_proto_test_proto protoreflect.FileDescriptor
var UnitTestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "prototest.UnitTestService", HandlerType: (*UnitTestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RunTest", Handler: _UnitTestService_RunTest_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpclib/test/proto_test.proto", }
UnitTestService_ServiceDesc is the grpc.ServiceDesc for UnitTestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUnitTestServiceServer ¶
func RegisterUnitTestServiceServer(s grpc.ServiceRegistrar, srv UnitTestServiceServer)
Types ¶
type UnimplementedUnitTestServiceServer ¶
type UnimplementedUnitTestServiceServer struct { }
UnimplementedUnitTestServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUnitTestServiceServer) RunTest ¶
func (UnimplementedUnitTestServiceServer) RunTest(context.Context, *UnitTestRequest) (*UnitTestResponse, error)
type UnitTestRequest ¶
type UnitTestRequest struct { TestName string `protobuf:"bytes,1,opt,name=test_name,json=testName,proto3" json:"test_name,omitempty"` TestDescription string `protobuf:"bytes,2,opt,name=test_description,json=testDescription,proto3" json:"test_description,omitempty"` // contains filtered or unexported fields }
func (*UnitTestRequest) Descriptor
deprecated
func (*UnitTestRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnitTestRequest.ProtoReflect.Descriptor instead.
func (*UnitTestRequest) GetTestDescription ¶
func (x *UnitTestRequest) GetTestDescription() string
func (*UnitTestRequest) GetTestName ¶
func (x *UnitTestRequest) GetTestName() string
func (*UnitTestRequest) ProtoMessage ¶
func (*UnitTestRequest) ProtoMessage()
func (*UnitTestRequest) ProtoReflect ¶
func (x *UnitTestRequest) ProtoReflect() protoreflect.Message
func (*UnitTestRequest) Reset ¶
func (x *UnitTestRequest) Reset()
func (*UnitTestRequest) String ¶
func (x *UnitTestRequest) String() string
type UnitTestResponse ¶
type UnitTestResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*UnitTestResponse) Descriptor
deprecated
func (*UnitTestResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnitTestResponse.ProtoReflect.Descriptor instead.
func (*UnitTestResponse) GetMessage ¶
func (x *UnitTestResponse) GetMessage() string
func (*UnitTestResponse) GetSuccess ¶
func (x *UnitTestResponse) GetSuccess() bool
func (*UnitTestResponse) ProtoMessage ¶
func (*UnitTestResponse) ProtoMessage()
func (*UnitTestResponse) ProtoReflect ¶
func (x *UnitTestResponse) ProtoReflect() protoreflect.Message
func (*UnitTestResponse) Reset ¶
func (x *UnitTestResponse) Reset()
func (*UnitTestResponse) String ¶
func (x *UnitTestResponse) String() string
type UnitTestServiceClient ¶
type UnitTestServiceClient interface {
RunTest(ctx context.Context, in *UnitTestRequest, opts ...grpc.CallOption) (*UnitTestResponse, error)
}
UnitTestServiceClient is the client API for UnitTestService 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 NewUnitTestServiceClient ¶
func NewUnitTestServiceClient(cc grpc.ClientConnInterface) UnitTestServiceClient
type UnitTestServiceServer ¶
type UnitTestServiceServer interface { RunTest(context.Context, *UnitTestRequest) (*UnitTestResponse, error) // contains filtered or unexported methods }
UnitTestServiceServer is the server API for UnitTestService service. All implementations must embed UnimplementedUnitTestServiceServer for forward compatibility
type UnsafeUnitTestServiceServer ¶
type UnsafeUnitTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUnitTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UnitTestServiceServer will result in compilation errors.