Documentation ¶
Index ¶
- func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)
- func (m *TestRequest) GetStr() string
- func (*TestRequest) ProtoMessage()
- func (m *TestRequest) Reset()
- func (m *TestRequest) String() string
- func (m *TestRequest) XXX_DiscardUnknown()
- func (m *TestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestRequest) XXX_Merge(src proto.Message)
- func (m *TestRequest) XXX_Size() int
- func (m *TestRequest) XXX_Unmarshal(b []byte) error
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)
- func (m *TestResponse) GetStr() string
- func (*TestResponse) ProtoMessage()
- func (m *TestResponse) Reset()
- func (m *TestResponse) String() string
- func (m *TestResponse) XXX_DiscardUnknown()
- func (m *TestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestResponse) XXX_Merge(src proto.Message)
- func (m *TestResponse) XXX_Size() int
- func (m *TestResponse) XXX_Unmarshal(b []byte) error
- type TestServiceClient
- type TestServiceServer
- type UnimplementedTestServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)
Types ¶
type TestRequest ¶
type TestRequest struct { Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestRequest) Descriptor ¶
func (*TestRequest) Descriptor() ([]byte, []int)
func (*TestRequest) GetStr ¶
func (m *TestRequest) GetStr() string
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) Reset ¶
func (m *TestRequest) Reset()
func (*TestRequest) String ¶
func (m *TestRequest) String() string
func (*TestRequest) XXX_DiscardUnknown ¶
func (m *TestRequest) XXX_DiscardUnknown()
func (*TestRequest) XXX_Marshal ¶
func (m *TestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestRequest) XXX_Merge ¶
func (m *TestRequest) XXX_Merge(src proto.Message)
func (*TestRequest) XXX_Size ¶
func (m *TestRequest) XXX_Size() int
func (*TestRequest) XXX_Unmarshal ¶
func (m *TestRequest) XXX_Unmarshal(b []byte) error
type TestResponse ¶
type TestResponse struct { Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TestResponse) Descriptor ¶
func (*TestResponse) Descriptor() ([]byte, []int)
func (*TestResponse) GetStr ¶
func (m *TestResponse) GetStr() string
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) Reset ¶
func (m *TestResponse) Reset()
func (*TestResponse) String ¶
func (m *TestResponse) String() string
func (*TestResponse) XXX_DiscardUnknown ¶
func (m *TestResponse) XXX_DiscardUnknown()
func (*TestResponse) XXX_Marshal ¶
func (m *TestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TestResponse) XXX_Merge ¶
func (m *TestResponse) XXX_Merge(src proto.Message)
func (*TestResponse) XXX_Size ¶
func (m *TestResponse) XXX_Size() int
func (*TestResponse) XXX_Unmarshal ¶
func (m *TestResponse) XXX_Unmarshal(b []byte) error
type TestServiceClient ¶
type TestServiceClient interface {
TestMethod(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
}
TestServiceClient is the client API for TestService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface {
TestMethod(context.Context, *TestRequest) (*TestResponse, error)
}
TestServiceServer is the server API for TestService service.
type UnimplementedTestServiceServer ¶ added in v1.5.0
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTestServiceServer) TestMethod ¶ added in v1.5.0
func (*UnimplementedTestServiceServer) TestMethod(ctx context.Context, req *TestRequest) (*TestResponse, error)
Click to show internal directories.
Click to hide internal directories.