package helloworld
import "github.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp/test_grpc/helloworld/helloworld"
Index ¶
- Variables
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type GreeterClient
- type GreeterServer
- type Greeter_InterruptedHelloClient
- type Greeter_InterruptedHelloServer
- type Greeter_RepeatHelloClient
- type Greeter_RepeatHelloServer
- type HelloReply
- func (*HelloReply) Descriptor() ([]byte, []int)
- func (x *HelloReply) GetMessage() string
- func (*HelloReply) ProtoMessage()
- func (x *HelloReply) ProtoReflect() protoreflect.Message
- func (x *HelloReply) Reset()
- func (x *HelloReply) String() string
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (x *HelloRequest) GetName() string
- func (*HelloRequest) ProtoMessage()
- func (x *HelloRequest) ProtoReflect() protoreflect.Message
- func (x *HelloRequest) Reset()
- func (x *HelloRequest) String() string
- type UnimplementedGreeterServer
Variables ¶
var File_helloworld_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GreeterClient ¶
type GreeterClient interface { // Sends a greeting SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) RepeatHello(ctx context.Context, opts ...grpc.CallOption) (Greeter_RepeatHelloClient, error) InterruptedHello(ctx context.Context, opts ...grpc.CallOption) (Greeter_InterruptedHelloClient, 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.ClientConnInterface) GreeterClient
type GreeterServer ¶
type GreeterServer interface { // Sends a greeting SayHello(context.Context, *HelloRequest) (*HelloReply, error) RepeatHello(Greeter_RepeatHelloServer) error InterruptedHello(Greeter_InterruptedHelloServer) error }
GreeterServer is the server API for Greeter service.
type Greeter_InterruptedHelloClient ¶
type Greeter_InterruptedHelloClient interface { Send(*HelloRequest) error Recv() (*HelloReply, error) grpc.ClientStream }
type Greeter_InterruptedHelloServer ¶
type Greeter_InterruptedHelloServer interface { Send(*HelloReply) error Recv() (*HelloRequest, error) grpc.ServerStream }
type Greeter_RepeatHelloClient ¶
type Greeter_RepeatHelloClient interface { Send(*HelloRequest) error Recv() (*HelloReply, error) grpc.ClientStream }
type Greeter_RepeatHelloServer ¶
type Greeter_RepeatHelloServer interface { Send(*HelloReply) error Recv() (*HelloRequest, error) grpc.ServerStream }
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 ¶
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 ¶
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 UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreeterServer) InterruptedHello ¶
func (*UnimplementedGreeterServer) InterruptedHello(Greeter_InterruptedHelloServer) error
func (*UnimplementedGreeterServer) RepeatHello ¶
func (*UnimplementedGreeterServer) RepeatHello(Greeter_RepeatHelloServer) error
func (*UnimplementedGreeterServer) SayHello ¶
func (*UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
Source Files ¶
- Version
- v1.3.1
- Published
- Apr 21, 2023
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 2 days ago –
Tools for package owners.