Documentation
¶
Index ¶
- Variables
- func RegisterGreetServiceServer(s grpc.ServiceRegistrar, srv GreetServiceServer)
- type GreetEveryOneRequest
- func (*GreetEveryOneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GreetEveryOneRequest) GetGreeting() *Greeting
- func (*GreetEveryOneRequest) ProtoMessage()
- func (x *GreetEveryOneRequest) ProtoReflect() protoreflect.Message
- func (x *GreetEveryOneRequest) Reset()
- func (x *GreetEveryOneRequest) String() string
- type GreetEveryOneResponse
- func (*GreetEveryOneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GreetEveryOneResponse) GetResult() string
- func (*GreetEveryOneResponse) ProtoMessage()
- func (x *GreetEveryOneResponse) ProtoReflect() protoreflect.Message
- func (x *GreetEveryOneResponse) Reset()
- func (x *GreetEveryOneResponse) String() string
- type GreetManyTimesRequest
- func (*GreetManyTimesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GreetManyTimesRequest) GetGreeting() *Greeting
- func (*GreetManyTimesRequest) ProtoMessage()
- func (x *GreetManyTimesRequest) ProtoReflect() protoreflect.Message
- func (x *GreetManyTimesRequest) Reset()
- func (x *GreetManyTimesRequest) String() string
- type GreetManyTimesResponse
- func (*GreetManyTimesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GreetManyTimesResponse) GetResult() string
- func (*GreetManyTimesResponse) ProtoMessage()
- func (x *GreetManyTimesResponse) ProtoReflect() protoreflect.Message
- func (x *GreetManyTimesResponse) Reset()
- func (x *GreetManyTimesResponse) String() string
- type GreetServiceClient
- type GreetServiceServer
- type GreetService_GreetEveryOneClient
- type GreetService_GreetEveryOneServer
- type GreetService_GreetManyTimesClient
- type GreetService_GreetManyTimesServer
- type GreetService_LongGreetClient
- type GreetService_LongGreetServer
- type Greeting
- type GreetingRequest
- type GreetingResponse
- type LongGreetRequest
- type LongGreetResponse
- type UnimplementedGreetServiceServer
- func (UnimplementedGreetServiceServer) Greet(context.Context, *GreetingRequest) (*GreetingResponse, error)
- func (UnimplementedGreetServiceServer) GreetEveryOne(GreetService_GreetEveryOneServer) error
- func (UnimplementedGreetServiceServer) GreetManyTimes(*GreetManyTimesRequest, GreetService_GreetManyTimesServer) error
- func (UnimplementedGreetServiceServer) LongGreet(GreetService_LongGreetServer) error
- type UnsafeGreetServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_greet_greetpb_greet_proto protoreflect.FileDescriptor
var GreetService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "greet.GreetService", HandlerType: (*GreetServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Greet", Handler: _GreetService_Greet_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GreetManyTimes", Handler: _GreetService_GreetManyTimes_Handler, ServerStreams: true, }, { StreamName: "LongGreet", Handler: _GreetService_LongGreet_Handler, ClientStreams: true, }, { StreamName: "GreetEveryOne", Handler: _GreetService_GreetEveryOne_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "greet/greetpb/greet.proto", }
GreetService_ServiceDesc is the grpc.ServiceDesc for GreetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s grpc.ServiceRegistrar, srv GreetServiceServer)
Types ¶
type GreetEveryOneRequest ¶
type GreetEveryOneRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
------ BiDi Streaming
func (*GreetEveryOneRequest) Descriptor
deprecated
func (*GreetEveryOneRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetEveryOneRequest.ProtoReflect.Descriptor instead.
func (*GreetEveryOneRequest) GetGreeting ¶
func (x *GreetEveryOneRequest) GetGreeting() *Greeting
func (*GreetEveryOneRequest) ProtoMessage ¶
func (*GreetEveryOneRequest) ProtoMessage()
func (*GreetEveryOneRequest) ProtoReflect ¶
func (x *GreetEveryOneRequest) ProtoReflect() protoreflect.Message
func (*GreetEveryOneRequest) Reset ¶
func (x *GreetEveryOneRequest) Reset()
func (*GreetEveryOneRequest) String ¶
func (x *GreetEveryOneRequest) String() string
type GreetEveryOneResponse ¶
type GreetEveryOneResponse struct { Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` // contains filtered or unexported fields }
func (*GreetEveryOneResponse) Descriptor
deprecated
func (*GreetEveryOneResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetEveryOneResponse.ProtoReflect.Descriptor instead.
func (*GreetEveryOneResponse) GetResult ¶
func (x *GreetEveryOneResponse) GetResult() string
func (*GreetEveryOneResponse) ProtoMessage ¶
func (*GreetEveryOneResponse) ProtoMessage()
func (*GreetEveryOneResponse) ProtoReflect ¶
func (x *GreetEveryOneResponse) ProtoReflect() protoreflect.Message
func (*GreetEveryOneResponse) Reset ¶
func (x *GreetEveryOneResponse) Reset()
func (*GreetEveryOneResponse) String ¶
func (x *GreetEveryOneResponse) String() string
type GreetManyTimesRequest ¶
type GreetManyTimesRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
------ Server Streaming
func (*GreetManyTimesRequest) Descriptor
deprecated
func (*GreetManyTimesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetManyTimesRequest.ProtoReflect.Descriptor instead.
func (*GreetManyTimesRequest) GetGreeting ¶
func (x *GreetManyTimesRequest) GetGreeting() *Greeting
func (*GreetManyTimesRequest) ProtoMessage ¶
func (*GreetManyTimesRequest) ProtoMessage()
func (*GreetManyTimesRequest) ProtoReflect ¶
func (x *GreetManyTimesRequest) ProtoReflect() protoreflect.Message
func (*GreetManyTimesRequest) Reset ¶
func (x *GreetManyTimesRequest) Reset()
func (*GreetManyTimesRequest) String ¶
func (x *GreetManyTimesRequest) String() string
type GreetManyTimesResponse ¶
type GreetManyTimesResponse struct { Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` // contains filtered or unexported fields }
func (*GreetManyTimesResponse) Descriptor
deprecated
func (*GreetManyTimesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetManyTimesResponse.ProtoReflect.Descriptor instead.
func (*GreetManyTimesResponse) GetResult ¶
func (x *GreetManyTimesResponse) GetResult() string
func (*GreetManyTimesResponse) ProtoMessage ¶
func (*GreetManyTimesResponse) ProtoMessage()
func (*GreetManyTimesResponse) ProtoReflect ¶
func (x *GreetManyTimesResponse) ProtoReflect() protoreflect.Message
func (*GreetManyTimesResponse) Reset ¶
func (x *GreetManyTimesResponse) Reset()
func (*GreetManyTimesResponse) String ¶
func (x *GreetManyTimesResponse) String() string
type GreetServiceClient ¶
type GreetServiceClient interface { // unary Greet(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error) // server streaming GreetManyTimes(ctx context.Context, in *GreetManyTimesRequest, opts ...grpc.CallOption) (GreetService_GreetManyTimesClient, error) // client streaming LongGreet(ctx context.Context, opts ...grpc.CallOption) (GreetService_LongGreetClient, error) // BiDi streaming GreetEveryOne(ctx context.Context, opts ...grpc.CallOption) (GreetService_GreetEveryOneClient, error) }
GreetServiceClient is the client API for GreetService 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 NewGreetServiceClient ¶
func NewGreetServiceClient(cc grpc.ClientConnInterface) GreetServiceClient
type GreetServiceServer ¶
type GreetServiceServer interface { // unary Greet(context.Context, *GreetingRequest) (*GreetingResponse, error) // server streaming GreetManyTimes(*GreetManyTimesRequest, GreetService_GreetManyTimesServer) error // client streaming LongGreet(GreetService_LongGreetServer) error // BiDi streaming GreetEveryOne(GreetService_GreetEveryOneServer) error // contains filtered or unexported methods }
GreetServiceServer is the server API for GreetService service. All implementations must embed UnimplementedGreetServiceServer for forward compatibility
type GreetService_GreetEveryOneClient ¶
type GreetService_GreetEveryOneClient interface { Send(*GreetEveryOneRequest) error Recv() (*GreetEveryOneResponse, error) grpc.ClientStream }
type GreetService_GreetEveryOneServer ¶
type GreetService_GreetEveryOneServer interface { Send(*GreetEveryOneResponse) error Recv() (*GreetEveryOneRequest, error) grpc.ServerStream }
type GreetService_GreetManyTimesClient ¶
type GreetService_GreetManyTimesClient interface { Recv() (*GreetManyTimesResponse, error) grpc.ClientStream }
type GreetService_GreetManyTimesServer ¶
type GreetService_GreetManyTimesServer interface { Send(*GreetManyTimesResponse) error grpc.ServerStream }
type GreetService_LongGreetClient ¶
type GreetService_LongGreetClient interface { Send(*LongGreetRequest) error CloseAndRecv() (*LongGreetResponse, error) grpc.ClientStream }
type GreetService_LongGreetServer ¶
type GreetService_LongGreetServer interface { SendAndClose(*LongGreetResponse) error Recv() (*LongGreetRequest, error) grpc.ServerStream }
type Greeting ¶
type Greeting struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // contains filtered or unexported fields }
func (*Greeting) Descriptor
deprecated
func (*Greeting) GetFirstName ¶
func (*Greeting) GetLastName ¶
func (*Greeting) ProtoMessage ¶
func (*Greeting) ProtoMessage()
func (*Greeting) ProtoReflect ¶
func (x *Greeting) ProtoReflect() protoreflect.Message
type GreetingRequest ¶
type GreetingRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*GreetingRequest) Descriptor
deprecated
func (*GreetingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetingRequest.ProtoReflect.Descriptor instead.
func (*GreetingRequest) GetGreeting ¶
func (x *GreetingRequest) GetGreeting() *Greeting
func (*GreetingRequest) ProtoMessage ¶
func (*GreetingRequest) ProtoMessage()
func (*GreetingRequest) ProtoReflect ¶
func (x *GreetingRequest) ProtoReflect() protoreflect.Message
func (*GreetingRequest) Reset ¶
func (x *GreetingRequest) Reset()
func (*GreetingRequest) String ¶
func (x *GreetingRequest) String() string
type GreetingResponse ¶
type GreetingResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GreetingResponse) Descriptor
deprecated
func (*GreetingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetingResponse.ProtoReflect.Descriptor instead.
func (*GreetingResponse) GetResult ¶
func (x *GreetingResponse) GetResult() string
func (*GreetingResponse) ProtoMessage ¶
func (*GreetingResponse) ProtoMessage()
func (*GreetingResponse) ProtoReflect ¶
func (x *GreetingResponse) ProtoReflect() protoreflect.Message
func (*GreetingResponse) Reset ¶
func (x *GreetingResponse) Reset()
func (*GreetingResponse) String ¶
func (x *GreetingResponse) String() string
type LongGreetRequest ¶
type LongGreetRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
------ Client Streaming
func (*LongGreetRequest) Descriptor
deprecated
func (*LongGreetRequest) Descriptor() ([]byte, []int)
Deprecated: Use LongGreetRequest.ProtoReflect.Descriptor instead.
func (*LongGreetRequest) GetGreeting ¶
func (x *LongGreetRequest) GetGreeting() *Greeting
func (*LongGreetRequest) ProtoMessage ¶
func (*LongGreetRequest) ProtoMessage()
func (*LongGreetRequest) ProtoReflect ¶
func (x *LongGreetRequest) ProtoReflect() protoreflect.Message
func (*LongGreetRequest) Reset ¶
func (x *LongGreetRequest) Reset()
func (*LongGreetRequest) String ¶
func (x *LongGreetRequest) String() string
type LongGreetResponse ¶
type LongGreetResponse struct { Result string `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"` // contains filtered or unexported fields }
func (*LongGreetResponse) Descriptor
deprecated
func (*LongGreetResponse) Descriptor() ([]byte, []int)
Deprecated: Use LongGreetResponse.ProtoReflect.Descriptor instead.
func (*LongGreetResponse) GetResult ¶
func (x *LongGreetResponse) GetResult() string
func (*LongGreetResponse) ProtoMessage ¶
func (*LongGreetResponse) ProtoMessage()
func (*LongGreetResponse) ProtoReflect ¶
func (x *LongGreetResponse) ProtoReflect() protoreflect.Message
func (*LongGreetResponse) Reset ¶
func (x *LongGreetResponse) Reset()
func (*LongGreetResponse) String ¶
func (x *LongGreetResponse) String() string
type UnimplementedGreetServiceServer ¶
type UnimplementedGreetServiceServer struct { }
UnimplementedGreetServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGreetServiceServer) Greet ¶
func (UnimplementedGreetServiceServer) Greet(context.Context, *GreetingRequest) (*GreetingResponse, error)
func (UnimplementedGreetServiceServer) GreetEveryOne ¶
func (UnimplementedGreetServiceServer) GreetEveryOne(GreetService_GreetEveryOneServer) error
func (UnimplementedGreetServiceServer) GreetManyTimes ¶
func (UnimplementedGreetServiceServer) GreetManyTimes(*GreetManyTimesRequest, GreetService_GreetManyTimesServer) error
func (UnimplementedGreetServiceServer) LongGreet ¶
func (UnimplementedGreetServiceServer) LongGreet(GreetService_LongGreetServer) error
type UnsafeGreetServiceServer ¶
type UnsafeGreetServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGreetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreetServiceServer will result in compilation errors.