Documentation ¶
Index ¶
- Variables
- func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)
- type GreetDeadlineRequest
- func (*GreetDeadlineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GreetDeadlineRequest) GetGreeting() *Greeting
- func (*GreetDeadlineRequest) ProtoMessage()
- func (x *GreetDeadlineRequest) ProtoReflect() protoreflect.Message
- func (x *GreetDeadlineRequest) Reset()
- func (x *GreetDeadlineRequest) String() string
- type GreetDeadlineResponse
- func (*GreetDeadlineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GreetDeadlineResponse) GetResult() string
- func (*GreetDeadlineResponse) ProtoMessage()
- func (x *GreetDeadlineResponse) ProtoReflect() protoreflect.Message
- func (x *GreetDeadlineResponse) Reset()
- func (x *GreetDeadlineResponse) String() string
- 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 GreetRequest
- type GreetResponse
- 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 LongGreetRequest
- type LongGreetResponse
- type UnimplementedGreetServiceServer
- func (*UnimplementedGreetServiceServer) Greet(context.Context, *GreetRequest) (*GreetResponse, error)
- func (*UnimplementedGreetServiceServer) GreetDeadline(context.Context, *GreetDeadlineRequest) (*GreetDeadlineResponse, error)
- func (*UnimplementedGreetServiceServer) GreetEveryone(GreetService_GreetEveryoneServer) error
- func (*UnimplementedGreetServiceServer) GreetManyTimes(*GreetRequest, GreetService_GreetManyTimesServer) error
- func (*UnimplementedGreetServiceServer) LongGreet(GreetService_LongGreetServer) error
Constants ¶
This section is empty.
Variables ¶
var File_greet_greetpb_greet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreetServiceServer ¶
func RegisterGreetServiceServer(s *grpc.Server, srv GreetServiceServer)
Types ¶
type GreetDeadlineRequest ¶
type GreetDeadlineRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*GreetDeadlineRequest) Descriptor
deprecated
func (*GreetDeadlineRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetDeadlineRequest.ProtoReflect.Descriptor instead.
func (*GreetDeadlineRequest) GetGreeting ¶
func (x *GreetDeadlineRequest) GetGreeting() *Greeting
func (*GreetDeadlineRequest) ProtoMessage ¶
func (*GreetDeadlineRequest) ProtoMessage()
func (*GreetDeadlineRequest) ProtoReflect ¶
func (x *GreetDeadlineRequest) ProtoReflect() protoreflect.Message
func (*GreetDeadlineRequest) Reset ¶
func (x *GreetDeadlineRequest) Reset()
func (*GreetDeadlineRequest) String ¶
func (x *GreetDeadlineRequest) String() string
type GreetDeadlineResponse ¶
type GreetDeadlineResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GreetDeadlineResponse) Descriptor
deprecated
func (*GreetDeadlineResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetDeadlineResponse.ProtoReflect.Descriptor instead.
func (*GreetDeadlineResponse) GetResult ¶
func (x *GreetDeadlineResponse) GetResult() string
func (*GreetDeadlineResponse) ProtoMessage ¶
func (*GreetDeadlineResponse) ProtoMessage()
func (*GreetDeadlineResponse) ProtoReflect ¶
func (x *GreetDeadlineResponse) ProtoReflect() protoreflect.Message
func (*GreetDeadlineResponse) Reset ¶
func (x *GreetDeadlineResponse) Reset()
func (*GreetDeadlineResponse) String ¶
func (x *GreetDeadlineResponse) String() string
type GreetEveryoneRequest ¶
type GreetEveryoneRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
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 GreetRequest ¶
type GreetRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*GreetRequest) Descriptor
deprecated
func (*GreetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetRequest.ProtoReflect.Descriptor instead.
func (*GreetRequest) GetGreeting ¶
func (x *GreetRequest) GetGreeting() *Greeting
func (*GreetRequest) ProtoMessage ¶
func (*GreetRequest) ProtoMessage()
func (*GreetRequest) ProtoReflect ¶
func (x *GreetRequest) ProtoReflect() protoreflect.Message
func (*GreetRequest) Reset ¶
func (x *GreetRequest) Reset()
func (*GreetRequest) String ¶
func (x *GreetRequest) String() string
type GreetResponse ¶
type GreetResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GreetResponse) Descriptor
deprecated
func (*GreetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetResponse.ProtoReflect.Descriptor instead.
func (*GreetResponse) GetResult ¶
func (x *GreetResponse) GetResult() string
func (*GreetResponse) ProtoMessage ¶
func (*GreetResponse) ProtoMessage()
func (*GreetResponse) ProtoReflect ¶
func (x *GreetResponse) ProtoReflect() protoreflect.Message
func (*GreetResponse) Reset ¶
func (x *GreetResponse) Reset()
func (*GreetResponse) String ¶
func (x *GreetResponse) String() string
type GreetServiceClient ¶
type GreetServiceClient interface { // Unary API Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error) // Server Streaming API GreetManyTimes(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (GreetService_GreetManyTimesClient, error) // Client Streaming API LongGreet(ctx context.Context, opts ...grpc.CallOption) (GreetService_LongGreetClient, error) // Bi-Directional Streaming API GreetEveryone(ctx context.Context, opts ...grpc.CallOption) (GreetService_GreetEveryoneClient, error) // gRPC Deadline Example | Unary API GreetDeadline(ctx context.Context, in *GreetDeadlineRequest, opts ...grpc.CallOption) (*GreetDeadlineResponse, error) }
GreetServiceClient is the client API for GreetService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetServiceClient ¶
func NewGreetServiceClient(cc grpc.ClientConnInterface) GreetServiceClient
type GreetServiceServer ¶
type GreetServiceServer interface { // Unary API Greet(context.Context, *GreetRequest) (*GreetResponse, error) // Server Streaming API GreetManyTimes(*GreetRequest, GreetService_GreetManyTimesServer) error // Client Streaming API LongGreet(GreetService_LongGreetServer) error // Bi-Directional Streaming API GreetEveryone(GreetService_GreetEveryoneServer) error // gRPC Deadline Example | Unary API GreetDeadline(context.Context, *GreetDeadlineRequest) (*GreetDeadlineResponse, error) }
GreetServiceServer is the server API for GreetService service.
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() (*GreetResponse, error) grpc.ClientStream }
type GreetService_GreetManyTimesServer ¶
type GreetService_GreetManyTimesServer interface { Send(*GreetResponse) 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 LongGreetRequest ¶
type LongGreetRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
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 can be embedded to have forward compatible implementations.
func (*UnimplementedGreetServiceServer) Greet ¶
func (*UnimplementedGreetServiceServer) Greet(context.Context, *GreetRequest) (*GreetResponse, error)
func (*UnimplementedGreetServiceServer) GreetDeadline ¶
func (*UnimplementedGreetServiceServer) GreetDeadline(context.Context, *GreetDeadlineRequest) (*GreetDeadlineResponse, error)
func (*UnimplementedGreetServiceServer) GreetEveryone ¶
func (*UnimplementedGreetServiceServer) GreetEveryone(GreetService_GreetEveryoneServer) error
func (*UnimplementedGreetServiceServer) GreetManyTimes ¶
func (*UnimplementedGreetServiceServer) GreetManyTimes(*GreetRequest, GreetService_GreetManyTimesServer) error
func (*UnimplementedGreetServiceServer) LongGreet ¶
func (*UnimplementedGreetServiceServer) LongGreet(GreetService_LongGreetServer) error