test

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingRequest_FailureType_name = map[int32]string{
	0: "NONE",
	1: "CODE",
	2: "DROP",
}
View Source
var PingRequest_FailureType_value = map[string]int32{
	"NONE": 0,
	"CODE": 1,
	"DROP": 2,
}

Functions

func RegisterTestServiceServer

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

Types

type ExtraStuff

type ExtraStuff struct {
	Addresses map[int32]string `` /* 139-byte string literal not displayed */
	// Types that are valid to be assigned to Title:
	//	*ExtraStuff_FirstName
	//	*ExtraStuff_IdNumber
	Title                isExtraStuff_Title `protobuf_oneof:"title"`
	CardNumbers          []uint32           `protobuf:"varint,4,rep,packed,name=card_numbers,json=cardNumbers" json:"card_numbers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ExtraStuff) Descriptor

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

func (*ExtraStuff) GetAddresses

func (m *ExtraStuff) GetAddresses() map[int32]string

func (*ExtraStuff) GetCardNumbers

func (m *ExtraStuff) GetCardNumbers() []uint32

func (*ExtraStuff) GetFirstName

func (m *ExtraStuff) GetFirstName() string

func (*ExtraStuff) GetIdNumber

func (m *ExtraStuff) GetIdNumber() int32

func (*ExtraStuff) GetTitle

func (m *ExtraStuff) GetTitle() isExtraStuff_Title

func (*ExtraStuff) ProtoMessage

func (*ExtraStuff) ProtoMessage()

func (*ExtraStuff) Reset

func (m *ExtraStuff) Reset()

func (*ExtraStuff) String

func (m *ExtraStuff) String() string

func (*ExtraStuff) XXX_DiscardUnknown added in v0.7.1

func (m *ExtraStuff) XXX_DiscardUnknown()

func (*ExtraStuff) XXX_Marshal added in v0.7.1

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

func (*ExtraStuff) XXX_Merge added in v0.7.1

func (dst *ExtraStuff) XXX_Merge(src proto.Message)

func (*ExtraStuff) XXX_OneofFuncs

func (*ExtraStuff) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ExtraStuff) XXX_Size added in v0.7.1

func (m *ExtraStuff) XXX_Size() int

func (*ExtraStuff) XXX_Unmarshal added in v0.7.1

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

type ExtraStuff_FirstName

type ExtraStuff_FirstName struct {
	FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,oneof"`
}

type ExtraStuff_IdNumber

type ExtraStuff_IdNumber struct {
	IdNumber int32 `protobuf:"varint,3,opt,name=id_number,json=idNumber,oneof"`
}

type PingRequest

type PingRequest struct {
	Value                string                  `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	ResponseCount        int32                   `protobuf:"varint,2,opt,name=response_count,json=responseCount" json:"response_count,omitempty"`
	ErrorCodeReturned    uint32                  `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned" json:"error_code_returned,omitempty"`
	FailureType          PingRequest_FailureType `protobuf:"varint,4,opt,name=failure_type,json=failureType,enum=test.PingRequest_FailureType" json:"failure_type,omitempty"`
	CheckMetadata        bool                    `protobuf:"varint,5,opt,name=check_metadata,json=checkMetadata" json:"check_metadata,omitempty"`
	SendHeaders          bool                    `protobuf:"varint,6,opt,name=send_headers,json=sendHeaders" json:"send_headers,omitempty"`
	SendTrailers         bool                    `protobuf:"varint,7,opt,name=send_trailers,json=sendTrailers" json:"send_trailers,omitempty"`
	MessageLatencyMs     int32                   `protobuf:"varint,8,opt,name=message_latency_ms,json=messageLatencyMs" json:"message_latency_ms,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) GetMessageLatencyMs

func (m *PingRequest) GetMessageLatencyMs() int32

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) 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.7.1

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal added in v0.7.1

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

func (*PingRequest) XXX_Merge added in v0.7.1

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

func (*PingRequest) XXX_Size added in v0.7.1

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal added in v0.7.1

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_DROP PingRequest_FailureType = 2
)

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" json:"Value,omitempty"`
	Counter              int32    `protobuf:"varint,2,opt,name=counter" 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.7.1

func (m *PingResponse) XXX_DiscardUnknown()

func (*PingResponse) XXX_Marshal added in v0.7.1

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

func (*PingResponse) XXX_Merge added in v0.7.1

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

func (*PingResponse) XXX_Size added in v0.7.1

func (m *PingResponse) XXX_Size() int

func (*PingResponse) XXX_Unmarshal added in v0.7.1

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)
	PingClientStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingClientStreamClient, error)
	PingClientStreamError(ctx context.Context, opts ...grpc.CallOption) (TestService_PingClientStreamErrorClient, error)
	PingBidiStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingBidiStreamClient, error)
	PingBidiStreamError(ctx context.Context, opts ...grpc.CallOption) (TestService_PingBidiStreamErrorClient, error)
}

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestService_PingBidiStreamClient

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

type TestService_PingBidiStreamErrorClient

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

type TestService_PingBidiStreamErrorServer

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

type TestService_PingBidiStreamServer

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

type TestService_PingClientStreamClient

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

type TestService_PingClientStreamErrorClient

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

type TestService_PingClientStreamErrorServer

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

type TestService_PingClientStreamServer

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

type TestService_PingListClient

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

type TestService_PingListServer

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

Jump to

Keyboard shortcuts

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