test

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PingRequest_FailureType_name = map[int32]string{
		0: "NONE",
		1: "CODE",
		3: "CODE_UNICODE",
	}
	PingRequest_FailureType_value = map[string]int32{
		"NONE":         0,
		"CODE":         1,
		"CODE_UNICODE": 3,
	}
)

Enum value maps for PingRequest_FailureType.

View Source
var FailService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.FailService",
	HandlerType: (*FailServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NonExistant",
			Handler:    _FailService_NonExistant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

FailService_ServiceDesc is the grpc.ServiceDesc for FailService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.TestService",
	HandlerType: (*TestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PingEmpty",
			Handler:    _TestService_PingEmpty_Handler,
		},
		{
			MethodName: "Ping",
			Handler:    _TestService_Ping_Handler,
		},
		{
			MethodName: "PingError",
			Handler:    _TestService_PingError_Handler,
		},
		{
			MethodName: "Echo",
			Handler:    _TestService_Echo_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PingList",
			Handler:       _TestService_PingList_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "PingPongBidi",
			Handler:       _TestService_PingPongBidi_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "PingStream",
			Handler:       _TestService_PingStream_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "test.proto",
}

TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TestUtilService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.TestUtilService",
	HandlerType: (*TestUtilServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ContinueStream",
			Handler:    _TestUtilService_ContinueStream_Handler,
		},
		{
			MethodName: "CheckStreamClosed",
			Handler:    _TestUtilService_CheckStreamClosed_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

TestUtilService_ServiceDesc is the grpc.ServiceDesc for TestUtilService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFailServiceServer

func RegisterFailServiceServer(s grpc.ServiceRegistrar, srv FailServiceServer)

func RegisterTestServiceServer

func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)

func RegisterTestUtilServiceServer

func RegisterTestUtilServiceServer(s grpc.ServiceRegistrar, srv TestUtilServiceServer)

Types

type CheckStreamClosedRequest

type CheckStreamClosedRequest struct {
	StreamIdentifier string `protobuf:"bytes,1,opt,name=stream_identifier,json=streamIdentifier,proto3" json:"stream_identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckStreamClosedRequest) Descriptor deprecated

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

Deprecated: Use CheckStreamClosedRequest.ProtoReflect.Descriptor instead.

func (*CheckStreamClosedRequest) GetStreamIdentifier

func (x *CheckStreamClosedRequest) GetStreamIdentifier() string

func (*CheckStreamClosedRequest) ProtoMessage

func (*CheckStreamClosedRequest) ProtoMessage()

func (*CheckStreamClosedRequest) ProtoReflect

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

func (*CheckStreamClosedRequest) Reset

func (x *CheckStreamClosedRequest) Reset()

func (*CheckStreamClosedRequest) String

func (x *CheckStreamClosedRequest) String() string

type CheckStreamClosedResponse

type CheckStreamClosedResponse struct {
	Closed bool `protobuf:"varint,1,opt,name=closed,proto3" json:"closed,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckStreamClosedResponse) Descriptor deprecated

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

Deprecated: Use CheckStreamClosedResponse.ProtoReflect.Descriptor instead.

func (*CheckStreamClosedResponse) GetClosed

func (x *CheckStreamClosedResponse) GetClosed() bool

func (*CheckStreamClosedResponse) ProtoMessage

func (*CheckStreamClosedResponse) ProtoMessage()

func (*CheckStreamClosedResponse) ProtoReflect

func (*CheckStreamClosedResponse) Reset

func (x *CheckStreamClosedResponse) Reset()

func (*CheckStreamClosedResponse) String

func (x *CheckStreamClosedResponse) String() string

type ContinueStreamRequest

type ContinueStreamRequest struct {
	StreamIdentifier string `protobuf:"bytes,1,opt,name=stream_identifier,json=streamIdentifier,proto3" json:"stream_identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*ContinueStreamRequest) Descriptor deprecated

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

Deprecated: Use ContinueStreamRequest.ProtoReflect.Descriptor instead.

func (*ContinueStreamRequest) GetStreamIdentifier

func (x *ContinueStreamRequest) GetStreamIdentifier() string

func (*ContinueStreamRequest) ProtoMessage

func (*ContinueStreamRequest) ProtoMessage()

func (*ContinueStreamRequest) ProtoReflect

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

func (*ContinueStreamRequest) Reset

func (x *ContinueStreamRequest) Reset()

func (*ContinueStreamRequest) String

func (x *ContinueStreamRequest) String() string

type FailServiceClient

type FailServiceClient interface {
	NonExistant(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

FailServiceClient is the client API for FailService 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 FailServiceServer

type FailServiceServer interface {
	NonExistant(context.Context, *PingRequest) (*PingResponse, error)
	// contains filtered or unexported methods
}

FailServiceServer is the server API for FailService service. All implementations must embed UnimplementedFailServiceServer for forward compatibility

type PingRequest

type PingRequest struct {
	Value             string                  `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	ResponseCount     int32                   `protobuf:"varint,2,opt,name=response_count,json=responseCount,proto3" json:"response_count,omitempty"`
	ErrorCodeReturned uint32                  `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned,proto3" json:"error_code_returned,omitempty"`
	FailureType       PingRequest_FailureType `` /* 129-byte string literal not displayed */
	CheckMetadata     bool                    `protobuf:"varint,5,opt,name=check_metadata,json=checkMetadata,proto3" json:"check_metadata,omitempty"`
	SendHeaders       bool                    `protobuf:"varint,6,opt,name=send_headers,json=sendHeaders,proto3" json:"send_headers,omitempty"`
	SendTrailers      bool                    `protobuf:"varint,7,opt,name=send_trailers,json=sendTrailers,proto3" json:"send_trailers,omitempty"`
	StreamIdentifier  string                  `protobuf:"bytes,8,opt,name=stream_identifier,json=streamIdentifier,proto3" json:"stream_identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetCheckMetadata

func (x *PingRequest) GetCheckMetadata() bool

func (*PingRequest) GetErrorCodeReturned

func (x *PingRequest) GetErrorCodeReturned() uint32

func (*PingRequest) GetFailureType

func (x *PingRequest) GetFailureType() PingRequest_FailureType

func (*PingRequest) GetResponseCount

func (x *PingRequest) GetResponseCount() int32

func (*PingRequest) GetSendHeaders

func (x *PingRequest) GetSendHeaders() bool

func (*PingRequest) GetSendTrailers

func (x *PingRequest) GetSendTrailers() bool

func (*PingRequest) GetStreamIdentifier

func (x *PingRequest) GetStreamIdentifier() string

func (*PingRequest) GetValue

func (x *PingRequest) GetValue() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingRequest_FailureType

type PingRequest_FailureType int32
const (
	PingRequest_NONE         PingRequest_FailureType = 0
	PingRequest_CODE         PingRequest_FailureType = 1
	PingRequest_CODE_UNICODE PingRequest_FailureType = 3
)

func (PingRequest_FailureType) Descriptor

func (PingRequest_FailureType) Enum

func (PingRequest_FailureType) EnumDescriptor deprecated

func (PingRequest_FailureType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PingRequest_FailureType.Descriptor instead.

func (PingRequest_FailureType) Number

func (PingRequest_FailureType) String

func (x PingRequest_FailureType) String() string

func (PingRequest_FailureType) Type

type PingResponse

type PingResponse struct {
	Value   string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
	Counter int32  `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"`
	// contains filtered or unexported fields
}

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetCounter

func (x *PingResponse) GetCounter() int32

func (*PingResponse) GetValue

func (x *PingResponse) GetValue() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type TestServiceClient

type TestServiceClient interface {
	PingEmpty(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PingResponse, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	PingError(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error)
	PingPongBidi(ctx context.Context, opts ...grpc.CallOption) (TestService_PingPongBidiClient, error)
	PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error)
	Echo(ctx context.Context, in *TextMessage, opts ...grpc.CallOption) (*TextMessage, error)
}

TestServiceClient is the client API for TestService 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 TestServiceServer

type TestServiceServer interface {
	PingEmpty(context.Context, *emptypb.Empty) (*PingResponse, error)
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	PingError(context.Context, *PingRequest) (*emptypb.Empty, error)
	PingList(*PingRequest, TestService_PingListServer) error
	PingPongBidi(TestService_PingPongBidiServer) error
	PingStream(TestService_PingStreamServer) error
	Echo(context.Context, *TextMessage) (*TextMessage, error)
	// contains filtered or unexported methods
}

TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility

type TestService_PingListClient

type TestService_PingListClient interface {
	Recv() (*PingResponse, error)
	grpc.ClientStream
}

type TestService_PingListServer

type TestService_PingListServer interface {
	Send(*PingResponse) error
	grpc.ServerStream
}

type TestService_PingPongBidiClient

type TestService_PingPongBidiClient interface {
	Send(*PingRequest) error
	Recv() (*PingResponse, error)
	grpc.ClientStream
}

type TestService_PingPongBidiServer

type TestService_PingPongBidiServer interface {
	Send(*PingResponse) error
	Recv() (*PingRequest, error)
	grpc.ServerStream
}

type TestService_PingStreamClient

type TestService_PingStreamClient interface {
	Send(*PingRequest) error
	CloseAndRecv() (*PingResponse, error)
	grpc.ClientStream
}

type TestService_PingStreamServer

type TestService_PingStreamServer interface {
	SendAndClose(*PingResponse) error
	Recv() (*PingRequest, error)
	grpc.ServerStream
}

type TestUtilServiceClient

type TestUtilServiceClient interface {
	ContinueStream(ctx context.Context, in *ContinueStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CheckStreamClosed(ctx context.Context, in *CheckStreamClosedRequest, opts ...grpc.CallOption) (*CheckStreamClosedResponse, error)
}

TestUtilServiceClient is the client API for TestUtilService 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 TestUtilServiceServer

type TestUtilServiceServer interface {
	ContinueStream(context.Context, *ContinueStreamRequest) (*emptypb.Empty, error)
	CheckStreamClosed(context.Context, *CheckStreamClosedRequest) (*CheckStreamClosedResponse, error)
	// contains filtered or unexported methods
}

TestUtilServiceServer is the server API for TestUtilService service. All implementations must embed UnimplementedTestUtilServiceServer for forward compatibility

type TextMessage

type TextMessage struct {
	Text         string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	SendHeaders  bool   `protobuf:"varint,2,opt,name=send_headers,json=sendHeaders,proto3" json:"send_headers,omitempty"`
	SendTrailers bool   `protobuf:"varint,3,opt,name=send_trailers,json=sendTrailers,proto3" json:"send_trailers,omitempty"`
	// contains filtered or unexported fields
}

func (*TextMessage) Descriptor deprecated

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

Deprecated: Use TextMessage.ProtoReflect.Descriptor instead.

func (*TextMessage) GetSendHeaders

func (x *TextMessage) GetSendHeaders() bool

func (*TextMessage) GetSendTrailers

func (x *TextMessage) GetSendTrailers() bool

func (*TextMessage) GetText

func (x *TextMessage) GetText() string

func (*TextMessage) ProtoMessage

func (*TextMessage) ProtoMessage()

func (*TextMessage) ProtoReflect

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

func (*TextMessage) Reset

func (x *TextMessage) Reset()

func (*TextMessage) String

func (x *TextMessage) String() string

type UnimplementedFailServiceServer

type UnimplementedFailServiceServer struct {
}

UnimplementedFailServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFailServiceServer) NonExistant

type UnimplementedTestServiceServer

type UnimplementedTestServiceServer struct {
}

UnimplementedTestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServiceServer) Echo

func (UnimplementedTestServiceServer) Ping

func (UnimplementedTestServiceServer) PingEmpty

func (UnimplementedTestServiceServer) PingError

func (UnimplementedTestServiceServer) PingList

func (UnimplementedTestServiceServer) PingPongBidi

func (UnimplementedTestServiceServer) PingStream

type UnimplementedTestUtilServiceServer

type UnimplementedTestUtilServiceServer struct {
}

UnimplementedTestUtilServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestUtilServiceServer) CheckStreamClosed

func (UnimplementedTestUtilServiceServer) ContinueStream

type UnsafeFailServiceServer

type UnsafeFailServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFailServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FailServiceServer will result in compilation errors.

type UnsafeTestServiceServer

type UnsafeTestServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.

type UnsafeTestUtilServiceServer

type UnsafeTestUtilServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTestUtilServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestUtilServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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