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
Index ¶
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- 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 RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
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) }
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) }
Click to show internal directories.
Click to hide internal directories.