improbable_grpcweb_test

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 6 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",
}
View Source
var PingRequest_FailureType_value = map[string]int32{
	"NONE":         0,
	"CODE":         1,
	"CODE_UNICODE": 3,
}

Functions

func RegisterFailServiceServer

func RegisterFailServiceServer(s *grpc.Server, srv FailServiceServer)

func RegisterTestServiceServer

func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)

func RegisterTestUtilServiceServer

func RegisterTestUtilServiceServer(s *grpc.Server, srv TestUtilServiceServer)

Types

type CheckStreamClosedRequest

type CheckStreamClosedRequest struct {
	StreamIdentifier     string   `protobuf:"bytes,1,opt,name=stream_identifier,json=streamIdentifier,proto3" json:"stream_identifier,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckStreamClosedRequest) Descriptor

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

func (*CheckStreamClosedRequest) GetStreamIdentifier

func (m *CheckStreamClosedRequest) GetStreamIdentifier() string

func (*CheckStreamClosedRequest) ProtoMessage

func (*CheckStreamClosedRequest) ProtoMessage()

func (*CheckStreamClosedRequest) Reset

func (m *CheckStreamClosedRequest) Reset()

func (*CheckStreamClosedRequest) String

func (m *CheckStreamClosedRequest) String() string

func (*CheckStreamClosedRequest) XXX_DiscardUnknown added in v0.10.0

func (m *CheckStreamClosedRequest) XXX_DiscardUnknown()

func (*CheckStreamClosedRequest) XXX_Marshal added in v0.10.0

func (m *CheckStreamClosedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckStreamClosedRequest) XXX_Merge added in v0.10.0

func (m *CheckStreamClosedRequest) XXX_Merge(src proto.Message)

func (*CheckStreamClosedRequest) XXX_Size added in v0.10.0

func (m *CheckStreamClosedRequest) XXX_Size() int

func (*CheckStreamClosedRequest) XXX_Unmarshal added in v0.10.0

func (m *CheckStreamClosedRequest) XXX_Unmarshal(b []byte) error

type CheckStreamClosedResponse

type CheckStreamClosedResponse struct {
	Closed               bool     `protobuf:"varint,1,opt,name=closed,proto3" json:"closed,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckStreamClosedResponse) Descriptor

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

func (*CheckStreamClosedResponse) GetClosed

func (m *CheckStreamClosedResponse) GetClosed() bool

func (*CheckStreamClosedResponse) ProtoMessage

func (*CheckStreamClosedResponse) ProtoMessage()

func (*CheckStreamClosedResponse) Reset

func (m *CheckStreamClosedResponse) Reset()

func (*CheckStreamClosedResponse) String

func (m *CheckStreamClosedResponse) String() string

func (*CheckStreamClosedResponse) XXX_DiscardUnknown added in v0.10.0

func (m *CheckStreamClosedResponse) XXX_DiscardUnknown()

func (*CheckStreamClosedResponse) XXX_Marshal added in v0.10.0

func (m *CheckStreamClosedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckStreamClosedResponse) XXX_Merge added in v0.10.0

func (m *CheckStreamClosedResponse) XXX_Merge(src proto.Message)

func (*CheckStreamClosedResponse) XXX_Size added in v0.10.0

func (m *CheckStreamClosedResponse) XXX_Size() int

func (*CheckStreamClosedResponse) XXX_Unmarshal added in v0.10.0

func (m *CheckStreamClosedResponse) XXX_Unmarshal(b []byte) error

type ContinueStreamRequest

type ContinueStreamRequest struct {
	StreamIdentifier     string   `protobuf:"bytes,1,opt,name=stream_identifier,json=streamIdentifier,proto3" json:"stream_identifier,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContinueStreamRequest) Descriptor

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

func (*ContinueStreamRequest) GetStreamIdentifier

func (m *ContinueStreamRequest) GetStreamIdentifier() string

func (*ContinueStreamRequest) ProtoMessage

func (*ContinueStreamRequest) ProtoMessage()

func (*ContinueStreamRequest) Reset

func (m *ContinueStreamRequest) Reset()

func (*ContinueStreamRequest) String

func (m *ContinueStreamRequest) String() string

func (*ContinueStreamRequest) XXX_DiscardUnknown added in v0.10.0

func (m *ContinueStreamRequest) XXX_DiscardUnknown()

func (*ContinueStreamRequest) XXX_Marshal added in v0.10.0

func (m *ContinueStreamRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContinueStreamRequest) XXX_Merge added in v0.10.0

func (m *ContinueStreamRequest) XXX_Merge(src proto.Message)

func (*ContinueStreamRequest) XXX_Size added in v0.10.0

func (m *ContinueStreamRequest) XXX_Size() int

func (*ContinueStreamRequest) XXX_Unmarshal added in v0.10.0

func (m *ContinueStreamRequest) XXX_Unmarshal(b []byte) error

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFailServiceClient

func NewFailServiceClient(cc *grpc.ClientConn) FailServiceClient

type FailServiceServer

type FailServiceServer interface {
	NonExistant(context.Context, *PingRequest) (*PingResponse, error)
}

FailServiceServer is the server API for FailService service.

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 `` /* 148-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"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*PingRequest) Descriptor

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

func (*PingRequest) GetCheckMetadata

func (m *PingRequest) GetCheckMetadata() bool

func (*PingRequest) GetErrorCodeReturned

func (m *PingRequest) GetErrorCodeReturned() uint32

func (*PingRequest) GetFailureType

func (m *PingRequest) GetFailureType() PingRequest_FailureType

func (*PingRequest) GetResponseCount

func (m *PingRequest) GetResponseCount() int32

func (*PingRequest) GetSendHeaders

func (m *PingRequest) GetSendHeaders() bool

func (*PingRequest) GetSendTrailers

func (m *PingRequest) GetSendTrailers() bool

func (*PingRequest) GetStreamIdentifier

func (m *PingRequest) GetStreamIdentifier() string

func (*PingRequest) GetValue

func (m *PingRequest) GetValue() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown added in v0.10.0

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal added in v0.10.0

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge added in v0.10.0

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size added in v0.10.0

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal added in v0.10.0

func (m *PingRequest) XXX_Unmarshal(b []byte) error

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

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

func (PingRequest_FailureType) String

func (x PingRequest_FailureType) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingResponse) Descriptor

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

func (*PingResponse) GetCounter

func (m *PingResponse) GetCounter() int32

func (*PingResponse) GetValue

func (m *PingResponse) GetValue() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) Reset

func (m *PingResponse) Reset()

func (*PingResponse) String

func (m *PingResponse) String() string

func (*PingResponse) XXX_DiscardUnknown added in v0.10.0

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal added in v0.10.0

func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingResponse) XXX_Merge added in v0.10.0

func (m *PingResponse) XXX_Merge(src proto.Message)

func (*PingResponse) XXX_Size added in v0.10.0

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal added in v0.10.0

func (m *PingResponse) XXX_Unmarshal(b []byte) error

type TestServiceClient

type TestServiceClient interface {
	PingEmpty(ctx context.Context, in *empty.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) (*empty.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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestServiceServer

TestServiceServer is the server API for TestService service.

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) (*empty.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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTestUtilServiceClient

func NewTestUtilServiceClient(cc *grpc.ClientConn) TestUtilServiceClient

type TestUtilServiceServer

type TestUtilServiceServer interface {
	ContinueStream(context.Context, *ContinueStreamRequest) (*empty.Empty, error)
	CheckStreamClosed(context.Context, *CheckStreamClosedRequest) (*CheckStreamClosedResponse, error)
}

TestUtilServiceServer is the server API for TestUtilService service.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TextMessage) Descriptor

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

func (*TextMessage) GetSendHeaders

func (m *TextMessage) GetSendHeaders() bool

func (*TextMessage) GetSendTrailers

func (m *TextMessage) GetSendTrailers() bool

func (*TextMessage) GetText

func (m *TextMessage) GetText() string

func (*TextMessage) ProtoMessage

func (*TextMessage) ProtoMessage()

func (*TextMessage) Reset

func (m *TextMessage) Reset()

func (*TextMessage) String

func (m *TextMessage) String() string

func (*TextMessage) XXX_DiscardUnknown added in v0.10.0

func (m *TextMessage) XXX_DiscardUnknown()

func (*TextMessage) XXX_Marshal added in v0.10.0

func (m *TextMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextMessage) XXX_Merge added in v0.10.0

func (m *TextMessage) XXX_Merge(src proto.Message)

func (*TextMessage) XXX_Size added in v0.10.0

func (m *TextMessage) XXX_Size() int

func (*TextMessage) XXX_Unmarshal added in v0.10.0

func (m *TextMessage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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