Documentation ¶
Index ¶
- Variables
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- func RegisterStreamingGreeterServer(s *grpc.Server, srv StreamingGreeterServer)
- type GreeterClient
- type GreeterServer
- type HelloReply
- func (*HelloReply) Descriptor() ([]byte, []int)
- func (this *HelloReply) Equal(that interface{}) bool
- func (m *HelloReply) GetMessage() string
- func (this *HelloReply) GoString() string
- func (m *HelloReply) Marshal() (dAtA []byte, err error)
- func (m *HelloReply) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloReply) ProtoMessage()
- func (m *HelloReply) Reset()
- func (m *HelloReply) Size() (n int)
- func (this *HelloReply) String() string
- func (m *HelloReply) Unmarshal(dAtA []byte) error
- func (m *HelloReply) XXX_DiscardUnknown()
- func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloReply) XXX_Merge(src proto.Message)
- func (m *HelloReply) XXX_Size() int
- func (m *HelloReply) XXX_Unmarshal(b []byte) error
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (this *HelloRequest) Equal(that interface{}) bool
- func (m *HelloRequest) GetCount() int32
- func (m *HelloRequest) GetName() string
- func (this *HelloRequest) GoString() string
- func (m *HelloRequest) Marshal() (dAtA []byte, err error)
- func (m *HelloRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) Size() (n int)
- func (this *HelloRequest) String() string
- func (m *HelloRequest) Unmarshal(dAtA []byte) error
- func (m *HelloRequest) XXX_DiscardUnknown()
- func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloRequest) XXX_Merge(src proto.Message)
- func (m *HelloRequest) XXX_Size() int
- func (m *HelloRequest) XXX_Unmarshal(b []byte) error
- type StreamingGreeterClient
- type StreamingGreeterServer
- type StreamingGreeter_SayHelloBidirStreamingClient
- type StreamingGreeter_SayHelloBidirStreamingServer
- type StreamingGreeter_SayHelloClientStreamingClient
- type StreamingGreeter_SayHelloClientStreamingServer
- type StreamingGreeter_SayHelloServerStreamingClient
- type StreamingGreeter_SayHelloServerStreamingServer
- type UnimplementedGreeterServer
- type UnimplementedStreamingGreeterServer
- func (*UnimplementedStreamingGreeterServer) SayHelloBidirStreaming(srv StreamingGreeter_SayHelloBidirStreamingServer) error
- func (*UnimplementedStreamingGreeterServer) SayHelloClientStreaming(srv StreamingGreeter_SayHelloClientStreamingServer) error
- func (*UnimplementedStreamingGreeterServer) SayHelloServerStreaming(req *HelloRequest, srv StreamingGreeter_SayHelloServerStreamingServer) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
func RegisterStreamingGreeterServer ¶
func RegisterStreamingGreeterServer(s *grpc.Server, srv StreamingGreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) SayHelloAgain(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) }
GreeterClient is the client API for Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterServer ¶
type GreeterServer interface { SayHello(context.Context, *HelloRequest) (*HelloReply, error) SayHelloAgain(context.Context, *HelloRequest) (*HelloReply, error) }
GreeterServer is the server API for Greeter service.
type HelloReply ¶
type HelloReply struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func (*HelloReply) Descriptor ¶
func (*HelloReply) Descriptor() ([]byte, []int)
func (*HelloReply) Equal ¶
func (this *HelloReply) Equal(that interface{}) bool
func (*HelloReply) GetMessage ¶
func (m *HelloReply) GetMessage() string
func (*HelloReply) GoString ¶
func (this *HelloReply) GoString() string
func (*HelloReply) Marshal ¶
func (m *HelloReply) Marshal() (dAtA []byte, err error)
func (*HelloReply) MarshalToSizedBuffer ¶
func (m *HelloReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) Reset ¶
func (m *HelloReply) Reset()
func (*HelloReply) Size ¶
func (m *HelloReply) Size() (n int)
func (*HelloReply) String ¶
func (this *HelloReply) String() string
func (*HelloReply) Unmarshal ¶
func (m *HelloReply) Unmarshal(dAtA []byte) error
func (*HelloReply) XXX_DiscardUnknown ¶
func (m *HelloReply) XXX_DiscardUnknown()
func (*HelloReply) XXX_Marshal ¶
func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloReply) XXX_Merge ¶
func (m *HelloReply) XXX_Merge(src proto.Message)
func (*HelloReply) XXX_Size ¶
func (m *HelloReply) XXX_Size() int
func (*HelloReply) XXX_Unmarshal ¶
func (m *HelloReply) XXX_Unmarshal(b []byte) error
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` }
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) Equal ¶
func (this *HelloRequest) Equal(that interface{}) bool
func (*HelloRequest) GetCount ¶
func (m *HelloRequest) GetCount() int32
func (*HelloRequest) GetName ¶
func (m *HelloRequest) GetName() string
func (*HelloRequest) GoString ¶
func (this *HelloRequest) GoString() string
func (*HelloRequest) Marshal ¶
func (m *HelloRequest) Marshal() (dAtA []byte, err error)
func (*HelloRequest) MarshalToSizedBuffer ¶
func (m *HelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) Size ¶
func (m *HelloRequest) Size() (n int)
func (*HelloRequest) String ¶
func (this *HelloRequest) String() string
func (*HelloRequest) Unmarshal ¶
func (m *HelloRequest) Unmarshal(dAtA []byte) error
func (*HelloRequest) XXX_DiscardUnknown ¶
func (m *HelloRequest) XXX_DiscardUnknown()
func (*HelloRequest) XXX_Marshal ¶
func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloRequest) XXX_Merge ¶
func (m *HelloRequest) XXX_Merge(src proto.Message)
func (*HelloRequest) XXX_Size ¶
func (m *HelloRequest) XXX_Size() int
func (*HelloRequest) XXX_Unmarshal ¶
func (m *HelloRequest) XXX_Unmarshal(b []byte) error
type StreamingGreeterClient ¶
type StreamingGreeterClient interface { SayHelloClientStreaming(ctx context.Context, opts ...grpc.CallOption) (StreamingGreeter_SayHelloClientStreamingClient, error) SayHelloServerStreaming(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (StreamingGreeter_SayHelloServerStreamingClient, error) SayHelloBidirStreaming(ctx context.Context, opts ...grpc.CallOption) (StreamingGreeter_SayHelloBidirStreamingClient, error) }
StreamingGreeterClient is the client API for StreamingGreeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStreamingGreeterClient ¶
func NewStreamingGreeterClient(cc *grpc.ClientConn) StreamingGreeterClient
type StreamingGreeterServer ¶
type StreamingGreeterServer interface { SayHelloClientStreaming(StreamingGreeter_SayHelloClientStreamingServer) error SayHelloServerStreaming(*HelloRequest, StreamingGreeter_SayHelloServerStreamingServer) error SayHelloBidirStreaming(StreamingGreeter_SayHelloBidirStreamingServer) error }
StreamingGreeterServer is the server API for StreamingGreeter service.
type StreamingGreeter_SayHelloBidirStreamingClient ¶
type StreamingGreeter_SayHelloBidirStreamingClient interface { Send(*HelloRequest) error Recv() (*HelloReply, error) grpc.ClientStream }
type StreamingGreeter_SayHelloBidirStreamingServer ¶
type StreamingGreeter_SayHelloBidirStreamingServer interface { Send(*HelloReply) error Recv() (*HelloRequest, error) grpc.ServerStream }
type StreamingGreeter_SayHelloClientStreamingClient ¶
type StreamingGreeter_SayHelloClientStreamingClient interface { Send(*HelloRequest) error CloseAndRecv() (*HelloReply, error) grpc.ClientStream }
type StreamingGreeter_SayHelloClientStreamingServer ¶
type StreamingGreeter_SayHelloClientStreamingServer interface { SendAndClose(*HelloReply) error Recv() (*HelloRequest, error) grpc.ServerStream }
type StreamingGreeter_SayHelloServerStreamingClient ¶
type StreamingGreeter_SayHelloServerStreamingClient interface { Recv() (*HelloReply, error) grpc.ClientStream }
type StreamingGreeter_SayHelloServerStreamingServer ¶
type StreamingGreeter_SayHelloServerStreamingServer interface { Send(*HelloReply) error grpc.ServerStream }
type UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServer) SayHello ¶
func (*UnimplementedGreeterServer) SayHello(ctx context.Context, req *HelloRequest) (*HelloReply, error)
func (*UnimplementedGreeterServer) SayHelloAgain ¶
func (*UnimplementedGreeterServer) SayHelloAgain(ctx context.Context, req *HelloRequest) (*HelloReply, error)
type UnimplementedStreamingGreeterServer ¶
type UnimplementedStreamingGreeterServer struct { }
UnimplementedStreamingGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedStreamingGreeterServer) SayHelloBidirStreaming ¶
func (*UnimplementedStreamingGreeterServer) SayHelloBidirStreaming(srv StreamingGreeter_SayHelloBidirStreamingServer) error
func (*UnimplementedStreamingGreeterServer) SayHelloClientStreaming ¶
func (*UnimplementedStreamingGreeterServer) SayHelloClientStreaming(srv StreamingGreeter_SayHelloClientStreamingServer) error
func (*UnimplementedStreamingGreeterServer) SayHelloServerStreaming ¶
func (*UnimplementedStreamingGreeterServer) SayHelloServerStreaming(req *HelloRequest, srv StreamingGreeter_SayHelloServerStreamingServer) error