test

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2017 License: MIT Imports: 6 Imported by: 6

Documentation

Overview

Package test is a generated protocol buffer package.

It is generated from these files:

proto/test/test.proto

It has these top-level messages:

ExtraStuff
PingRequest
PingResponse

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"`
}

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_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.

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"`
}

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

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"`
}

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

type TestServiceClient

type TestServiceClient interface {
	PingEmpty(ctx context.Context, in *google_protobuf.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) (*google_protobuf.Empty, error)
	PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error)
}

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

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