Documentation ¶
Overview ¶
Package mwitkow_testproto is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Empty PingRequest PingResponse
Index ¶
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type Empty
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (m *PingRequest) ExtractRequestFields(appendToMap map[string]interface{})
- func (m *PingRequest) GetErrorCodeReturned() uint32
- func (m *PingRequest) GetSleepTimeMs() int32
- func (m *PingRequest) GetValue() string
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) String() string
- func (p *PingRequest) Validate() error
- type PingResponse
- type TestServiceClient
- type TestServiceServer
- type TestService_PingListClient
- type TestService_PingListServer
- type TestService_PingStreamClient
- type TestService_PingStreamServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type PingRequest ¶
type PingRequest struct { Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` SleepTimeMs int32 `protobuf:"varint,2,opt,name=sleep_time_ms,json=sleepTimeMs" json:"sleep_time_ms,omitempty"` ErrorCodeReturned uint32 `protobuf:"varint,3,opt,name=error_code_returned,json=errorCodeReturned" json:"error_code_returned,omitempty"` }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) ExtractRequestFields ¶
func (m *PingRequest) ExtractRequestFields(appendToMap map[string]interface{})
This is implementing grpc_logging.requestLogFieldsExtractor
func (*PingRequest) GetErrorCodeReturned ¶
func (m *PingRequest) GetErrorCodeReturned() uint32
func (*PingRequest) GetSleepTimeMs ¶
func (m *PingRequest) GetSleepTimeMs() int32
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) Validate ¶
func (p *PingRequest) Validate() error
type PingResponse ¶
type PingResponse struct { Value string `protobuf:"bytes,1,opt,name=Value,json=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 *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, error) PingList(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (TestService_PingListClient, error) PingStream(ctx context.Context, opts ...grpc.CallOption) (TestService_PingStreamClient, error) }
func NewTestServiceClient ¶
func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { PingEmpty(context.Context, *Empty) (*PingResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) PingError(context.Context, *PingRequest) (*Empty, error) PingList(*PingRequest, TestService_PingListServer) error PingStream(TestService_PingStreamServer) error }
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_PingStreamClient ¶
type TestService_PingStreamClient interface { Send(*PingRequest) error Recv() (*PingResponse, error) grpc.ClientStream }
type TestService_PingStreamServer ¶
type TestService_PingStreamServer interface { Send(*PingResponse) error Recv() (*PingRequest, error) grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.