Documentation
¶
Index ¶
- func RegisterDubbo3GreeterServer(s *grpc.Server, srv Dubbo3GreeterServer)
- type BigData
- func (*BigData) Descriptor() ([]byte, []int)
- func (m *BigData) GetData() []byte
- func (m *BigData) GetWantSize() int32
- func (*BigData) ProtoMessage()
- func (m *BigData) Reset()
- func (m *BigData) String() string
- func (m *BigData) XXX_DiscardUnknown()
- func (m *BigData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BigData) XXX_Merge(src proto.Message)
- func (m *BigData) XXX_Size() int
- func (m *BigData) XXX_Unmarshal(b []byte) error
- type Dubbo3GreeterClient
- type Dubbo3GreeterClientImpl
- type Dubbo3GreeterProviderBase
- type Dubbo3GreeterServer
- type Dubbo3Greeter_BigStreamTestClient
- type Dubbo3Greeter_BigStreamTestServer
- type Dubbo3Greeter_Dubbo3SayHelloClient
- type Dubbo3Greeter_Dubbo3SayHelloServer
- type Dubbo3HelloReply
- func (*Dubbo3HelloReply) Descriptor() ([]byte, []int)
- func (m *Dubbo3HelloReply) GetMsg() string
- func (*Dubbo3HelloReply) ProtoMessage()
- func (m *Dubbo3HelloReply) Reset()
- func (m *Dubbo3HelloReply) String() string
- func (m *Dubbo3HelloReply) XXX_DiscardUnknown()
- func (m *Dubbo3HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dubbo3HelloReply) XXX_Merge(src proto.Message)
- func (m *Dubbo3HelloReply) XXX_Size() int
- func (m *Dubbo3HelloReply) XXX_Unmarshal(b []byte) error
- type Dubbo3HelloRequest
- func (*Dubbo3HelloRequest) Descriptor() ([]byte, []int)
- func (m *Dubbo3HelloRequest) GetMyname() string
- func (*Dubbo3HelloRequest) ProtoMessage()
- func (m *Dubbo3HelloRequest) Reset()
- func (m *Dubbo3HelloRequest) String() string
- func (m *Dubbo3HelloRequest) XXX_DiscardUnknown()
- func (m *Dubbo3HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dubbo3HelloRequest) XXX_Merge(src proto.Message)
- func (m *Dubbo3HelloRequest) XXX_Size() int
- func (m *Dubbo3HelloRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedDubbo3GreeterServer
- func (*UnimplementedDubbo3GreeterServer) BigStreamTest(srv Dubbo3Greeter_BigStreamTestServer) error
- func (*UnimplementedDubbo3GreeterServer) BigUnaryTest(ctx context.Context, req *BigData) (*BigData, error)
- func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello(srv Dubbo3Greeter_Dubbo3SayHelloServer) error
- func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello2(ctx context.Context, req *Dubbo3HelloRequest) (*Dubbo3HelloReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDubbo3GreeterServer ¶
func RegisterDubbo3GreeterServer(s *grpc.Server, srv Dubbo3GreeterServer)
Types ¶
type BigData ¶
type BigData struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` WantSize int32 `protobuf:"varint,2,opt,name=wantSize,proto3" json:"wantSize,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BigData) Descriptor ¶
func (*BigData) GetWantSize ¶
func (*BigData) ProtoMessage ¶
func (*BigData) ProtoMessage()
func (*BigData) XXX_DiscardUnknown ¶
func (m *BigData) XXX_DiscardUnknown()
func (*BigData) XXX_Marshal ¶
func (*BigData) XXX_Unmarshal ¶
type Dubbo3GreeterClient ¶
type Dubbo3GreeterClient interface { // Sends a greeting Dubbo3SayHello(ctx context.Context, opts ...grpc.CallOption) (Dubbo3Greeter_Dubbo3SayHelloClient, error) Dubbo3SayHello2(ctx context.Context, in *Dubbo3HelloRequest, opts ...grpc.CallOption) (*Dubbo3HelloReply, error) BigStreamTest(ctx context.Context, opts ...grpc.CallOption) (Dubbo3Greeter_BigStreamTestClient, error) BigUnaryTest(ctx context.Context, in *BigData, opts ...grpc.CallOption) (*BigData, error) }
Dubbo3GreeterClient is the client API for Dubbo3Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDubbo3GreeterClient ¶
func NewDubbo3GreeterClient(cc grpc.ClientConnInterface) Dubbo3GreeterClient
func NewDubbo3GreeterDubbo3Client ¶
func NewDubbo3GreeterDubbo3Client(cc *dubbo3.TripleConn) Dubbo3GreeterClient
type Dubbo3GreeterClientImpl ¶
type Dubbo3GreeterClientImpl struct { // Sends a greeting Dubbo3SayHello func(ctx context.Context) (Dubbo3Greeter_Dubbo3SayHelloClient, error) Dubbo3SayHello2 func(ctx context.Context, in *Dubbo3HelloRequest, out *Dubbo3HelloReply) error BigStreamTest func(ctx context.Context) (Dubbo3Greeter_BigStreamTestClient, error) BigUnaryTest func(ctx context.Context, in *BigData, out *BigData) error }
Dubbo3GreeterClientImpl is the client API for Dubbo3Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func (*Dubbo3GreeterClientImpl) GetDubboStub ¶
func (c *Dubbo3GreeterClientImpl) GetDubboStub(cc *dubbo3.TripleConn) Dubbo3GreeterClient
func (*Dubbo3GreeterClientImpl) Reference ¶
func (c *Dubbo3GreeterClientImpl) Reference() string
type Dubbo3GreeterProviderBase ¶
type Dubbo3GreeterProviderBase struct {
// contains filtered or unexported fields
}
func (*Dubbo3GreeterProviderBase) GetProxyImpl ¶
func (s *Dubbo3GreeterProviderBase) GetProxyImpl() protocol.Invoker
func (*Dubbo3GreeterProviderBase) ServiceDesc ¶
func (s *Dubbo3GreeterProviderBase) ServiceDesc() *grpc.ServiceDesc
func (*Dubbo3GreeterProviderBase) SetProxyImpl ¶
func (s *Dubbo3GreeterProviderBase) SetProxyImpl(impl protocol.Invoker)
type Dubbo3GreeterServer ¶
type Dubbo3GreeterServer interface { // Sends a greeting Dubbo3SayHello(Dubbo3Greeter_Dubbo3SayHelloServer) error Dubbo3SayHello2(context.Context, *Dubbo3HelloRequest) (*Dubbo3HelloReply, error) BigStreamTest(Dubbo3Greeter_BigStreamTestServer) error BigUnaryTest(context.Context, *BigData) (*BigData, error) }
Dubbo3GreeterServer is the server API for Dubbo3Greeter service.
type Dubbo3Greeter_Dubbo3SayHelloClient ¶
type Dubbo3Greeter_Dubbo3SayHelloClient interface { Send(*Dubbo3HelloRequest) error Recv() (*Dubbo3HelloReply, error) grpc.ClientStream }
type Dubbo3Greeter_Dubbo3SayHelloServer ¶
type Dubbo3Greeter_Dubbo3SayHelloServer interface { Send(*Dubbo3HelloReply) error Recv() (*Dubbo3HelloRequest, error) grpc.ServerStream }
type Dubbo3HelloReply ¶
type Dubbo3HelloReply struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the greetings
func (*Dubbo3HelloReply) Descriptor ¶
func (*Dubbo3HelloReply) Descriptor() ([]byte, []int)
func (*Dubbo3HelloReply) GetMsg ¶
func (m *Dubbo3HelloReply) GetMsg() string
func (*Dubbo3HelloReply) ProtoMessage ¶
func (*Dubbo3HelloReply) ProtoMessage()
func (*Dubbo3HelloReply) Reset ¶
func (m *Dubbo3HelloReply) Reset()
func (*Dubbo3HelloReply) String ¶
func (m *Dubbo3HelloReply) String() string
func (*Dubbo3HelloReply) XXX_DiscardUnknown ¶
func (m *Dubbo3HelloReply) XXX_DiscardUnknown()
func (*Dubbo3HelloReply) XXX_Marshal ¶
func (m *Dubbo3HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Dubbo3HelloReply) XXX_Merge ¶
func (m *Dubbo3HelloReply) XXX_Merge(src proto.Message)
func (*Dubbo3HelloReply) XXX_Size ¶
func (m *Dubbo3HelloReply) XXX_Size() int
func (*Dubbo3HelloReply) XXX_Unmarshal ¶
func (m *Dubbo3HelloReply) XXX_Unmarshal(b []byte) error
type Dubbo3HelloRequest ¶
type Dubbo3HelloRequest struct { Myname string `protobuf:"bytes,1,opt,name=myname,proto3" json:"myname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the user's name.
func (*Dubbo3HelloRequest) Descriptor ¶
func (*Dubbo3HelloRequest) Descriptor() ([]byte, []int)
func (*Dubbo3HelloRequest) GetMyname ¶
func (m *Dubbo3HelloRequest) GetMyname() string
func (*Dubbo3HelloRequest) ProtoMessage ¶
func (*Dubbo3HelloRequest) ProtoMessage()
func (*Dubbo3HelloRequest) Reset ¶
func (m *Dubbo3HelloRequest) Reset()
func (*Dubbo3HelloRequest) String ¶
func (m *Dubbo3HelloRequest) String() string
func (*Dubbo3HelloRequest) XXX_DiscardUnknown ¶
func (m *Dubbo3HelloRequest) XXX_DiscardUnknown()
func (*Dubbo3HelloRequest) XXX_Marshal ¶
func (m *Dubbo3HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Dubbo3HelloRequest) XXX_Merge ¶
func (m *Dubbo3HelloRequest) XXX_Merge(src proto.Message)
func (*Dubbo3HelloRequest) XXX_Size ¶
func (m *Dubbo3HelloRequest) XXX_Size() int
func (*Dubbo3HelloRequest) XXX_Unmarshal ¶
func (m *Dubbo3HelloRequest) XXX_Unmarshal(b []byte) error
type UnimplementedDubbo3GreeterServer ¶
type UnimplementedDubbo3GreeterServer struct { }
UnimplementedDubbo3GreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedDubbo3GreeterServer) BigStreamTest ¶
func (*UnimplementedDubbo3GreeterServer) BigStreamTest(srv Dubbo3Greeter_BigStreamTestServer) error
func (*UnimplementedDubbo3GreeterServer) BigUnaryTest ¶
func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello ¶
func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello(srv Dubbo3Greeter_Dubbo3SayHelloServer) error
func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello2 ¶
func (*UnimplementedDubbo3GreeterServer) Dubbo3SayHello2(ctx context.Context, req *Dubbo3HelloRequest) (*Dubbo3HelloReply, error)