Documentation ¶
Overview ¶
Package grpctest is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
TestRequest TestResponse PrintKVRequest PrintKVResponse BidirectionalRequest BidirectionalResponse PingRequest PongResponse
Index ¶
- func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type BidirectionalRequest
- type BidirectionalResponse
- type PingPongClient
- type PingPongServer
- type PingRequest
- type PongResponse
- type PrintKVRequest
- func (*PrintKVRequest) Descriptor() ([]byte, []int)
- func (m *PrintKVRequest) GetKey() string
- func (m *PrintKVRequest) GetValue() isPrintKVRequest_Value
- func (m *PrintKVRequest) GetValueInt() int32
- func (m *PrintKVRequest) GetValueString() string
- func (*PrintKVRequest) ProtoMessage()
- func (m *PrintKVRequest) Reset()
- func (m *PrintKVRequest) String() string
- func (*PrintKVRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type PrintKVRequest_ValueInt
- type PrintKVRequest_ValueString
- type PrintKVResponse
- type TestClient
- type TestRequest
- type TestResponse
- type TestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPingPongServer ¶
func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type BidirectionalRequest ¶
type BidirectionalRequest struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*BidirectionalRequest) Descriptor ¶
func (*BidirectionalRequest) Descriptor() ([]byte, []int)
func (*BidirectionalRequest) GetId ¶
func (m *BidirectionalRequest) GetId() uint32
func (*BidirectionalRequest) ProtoMessage ¶
func (*BidirectionalRequest) ProtoMessage()
func (*BidirectionalRequest) Reset ¶
func (m *BidirectionalRequest) Reset()
func (*BidirectionalRequest) String ¶
func (m *BidirectionalRequest) String() string
type BidirectionalResponse ¶
type BidirectionalResponse struct {
Id uint32 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*BidirectionalResponse) Descriptor ¶
func (*BidirectionalResponse) Descriptor() ([]byte, []int)
func (*BidirectionalResponse) GetId ¶
func (m *BidirectionalResponse) GetId() uint32
func (*BidirectionalResponse) ProtoMessage ¶
func (*BidirectionalResponse) ProtoMessage()
func (*BidirectionalResponse) Reset ¶
func (m *BidirectionalResponse) Reset()
func (*BidirectionalResponse) String ¶
func (m *BidirectionalResponse) String() string
type PingPongClient ¶
type PingPongClient interface {
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongResponse, error)
}
func NewPingPongClient ¶
func NewPingPongClient(cc *grpc.ClientConn) PingPongClient
type PingPongServer ¶
type PingPongServer interface {
Ping(context.Context, *PingRequest) (*PongResponse, error)
}
type PingRequest ¶
type PingRequest struct { }
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
type PongResponse ¶
type PongResponse struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*PongResponse) Descriptor ¶
func (*PongResponse) Descriptor() ([]byte, []int)
func (*PongResponse) GetMsg ¶
func (m *PongResponse) GetMsg() string
func (*PongResponse) ProtoMessage ¶
func (*PongResponse) ProtoMessage()
func (*PongResponse) Reset ¶
func (m *PongResponse) Reset()
func (*PongResponse) String ¶
func (m *PongResponse) String() string
type PrintKVRequest ¶
type PrintKVRequest struct { Key string `protobuf:"bytes,1,opt,name=Key" json:"Key,omitempty"` // Types that are valid to be assigned to Value: // *PrintKVRequest_ValueString // *PrintKVRequest_ValueInt Value isPrintKVRequest_Value `protobuf_oneof:"Value"` }
func (*PrintKVRequest) Descriptor ¶
func (*PrintKVRequest) Descriptor() ([]byte, []int)
func (*PrintKVRequest) GetKey ¶
func (m *PrintKVRequest) GetKey() string
func (*PrintKVRequest) GetValue ¶
func (m *PrintKVRequest) GetValue() isPrintKVRequest_Value
func (*PrintKVRequest) GetValueInt ¶
func (m *PrintKVRequest) GetValueInt() int32
func (*PrintKVRequest) GetValueString ¶
func (m *PrintKVRequest) GetValueString() string
func (*PrintKVRequest) ProtoMessage ¶
func (*PrintKVRequest) ProtoMessage()
func (*PrintKVRequest) Reset ¶
func (m *PrintKVRequest) Reset()
func (*PrintKVRequest) String ¶
func (m *PrintKVRequest) String() string
func (*PrintKVRequest) XXX_OneofFuncs ¶
func (*PrintKVRequest) 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 PrintKVRequest_ValueInt ¶
type PrintKVRequest_ValueInt struct {
ValueInt int32 `protobuf:"varint,3,opt,name=ValueInt,oneof"`
}
type PrintKVRequest_ValueString ¶
type PrintKVRequest_ValueString struct {
ValueString string `protobuf:"bytes,2,opt,name=ValueString,oneof"`
}
type PrintKVResponse ¶
type PrintKVResponse struct { }
func (*PrintKVResponse) Descriptor ¶
func (*PrintKVResponse) Descriptor() ([]byte, []int)
func (*PrintKVResponse) ProtoMessage ¶
func (*PrintKVResponse) ProtoMessage()
func (*PrintKVResponse) Reset ¶
func (m *PrintKVResponse) Reset()
func (*PrintKVResponse) String ¶
func (m *PrintKVResponse) String() string
type TestClient ¶
type TestClient interface { Double(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error) PrintKV(ctx context.Context, in *PrintKVRequest, opts ...grpc.CallOption) (*PrintKVResponse, error) Bidirectional(ctx context.Context, in *BidirectionalRequest, opts ...grpc.CallOption) (*BidirectionalResponse, error) }
func NewTestClient ¶
func NewTestClient(cc *grpc.ClientConn) TestClient
type TestRequest ¶
type TestRequest struct {
Input int32 `protobuf:"varint,1,opt,name=Input" json:"Input,omitempty"`
}
func (*TestRequest) Descriptor ¶
func (*TestRequest) Descriptor() ([]byte, []int)
func (*TestRequest) GetInput ¶
func (m *TestRequest) GetInput() int32
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) Reset ¶
func (m *TestRequest) Reset()
func (*TestRequest) String ¶
func (m *TestRequest) String() string
type TestResponse ¶
type TestResponse struct {
Output int32 `protobuf:"varint,2,opt,name=Output" json:"Output,omitempty"`
}
func (*TestResponse) Descriptor ¶
func (*TestResponse) Descriptor() ([]byte, []int)
func (*TestResponse) GetOutput ¶
func (m *TestResponse) GetOutput() int32
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) Reset ¶
func (m *TestResponse) Reset()
func (*TestResponse) String ¶
func (m *TestResponse) String() string
type TestServer ¶
type TestServer interface { Double(context.Context, *TestRequest) (*TestResponse, error) PrintKV(context.Context, *PrintKVRequest) (*PrintKVResponse, error) Bidirectional(context.Context, *BidirectionalRequest) (*BidirectionalResponse, error) }
Click to show internal directories.
Click to hide internal directories.