Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterStreamingGreeterServer(s grpc.ServiceRegistrar, srv StreamingGreeterServer)
- type HelloReply
- type HelloRequest
- type StreamingGreeterClient
- type StreamingGreeterServer
- type StreamingGreeter_SayHelloStreamingClient
- type StreamingGreeter_SayHelloStreamingServer
- type UnimplementedStreamingGreeterServer
- type UnsafeStreamingGreeterServer
Constants ¶
const (
StreamingGreeter_SayHelloStreaming_FullMethodName = "/hellostream.StreamingGreeter/SayHelloStreaming"
)
Variables ¶
var File_api_hellostream_proto protoreflect.FileDescriptor
var StreamingGreeter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hellostream.StreamingGreeter", HandlerType: (*StreamingGreeterServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SayHelloStreaming", Handler: _StreamingGreeter_SayHelloStreaming_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/hellostream.proto", }
StreamingGreeter_ServiceDesc is the grpc.ServiceDesc for StreamingGreeter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamingGreeterServer ¶
func RegisterStreamingGreeterServer(s grpc.ServiceRegistrar, srv StreamingGreeterServer)
Types ¶
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type StreamingGreeterClient ¶
type StreamingGreeterClient interface { // Streams a many greetings SayHelloStreaming(ctx context.Context, opts ...grpc.CallOption) (StreamingGreeter_SayHelloStreamingClient, error) }
StreamingGreeterClient is the client API for StreamingGreeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStreamingGreeterClient ¶
func NewStreamingGreeterClient(cc grpc.ClientConnInterface) StreamingGreeterClient
type StreamingGreeterServer ¶
type StreamingGreeterServer interface { // Streams a many greetings SayHelloStreaming(StreamingGreeter_SayHelloStreamingServer) error // contains filtered or unexported methods }
StreamingGreeterServer is the server API for StreamingGreeter service. All implementations must embed UnimplementedStreamingGreeterServer for forward compatibility
type StreamingGreeter_SayHelloStreamingClient ¶
type StreamingGreeter_SayHelloStreamingClient interface { Send(*HelloRequest) error Recv() (*HelloReply, error) grpc.ClientStream }
type StreamingGreeter_SayHelloStreamingServer ¶
type StreamingGreeter_SayHelloStreamingServer interface { Send(*HelloReply) error Recv() (*HelloRequest, error) grpc.ServerStream }
type UnimplementedStreamingGreeterServer ¶
type UnimplementedStreamingGreeterServer struct { }
UnimplementedStreamingGreeterServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamingGreeterServer) SayHelloStreaming ¶
func (UnimplementedStreamingGreeterServer) SayHelloStreaming(StreamingGreeter_SayHelloStreamingServer) error
type UnsafeStreamingGreeterServer ¶
type UnsafeStreamingGreeterServer interface {
// contains filtered or unexported methods
}
UnsafeStreamingGreeterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamingGreeterServer will result in compilation errors.