Documentation
¶
Index ¶
- Variables
- func RegisterGreetServicesServer(s *grpc.Server, srv GreetServicesServer)
- 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 GreetRequest
- type GreetResponse
- type GreetServicesClient
- type GreetServicesServer
- type GreetServices_GreetEveryoneClient
- type GreetServices_GreetEveryoneServer
- type GreetServices_GreetManyTimesClient
- type GreetServices_GreetManyTimesServer
- type GreetServices_LongGreetClient
- type GreetServices_LongGreetServer
- type GreetWithDeadLineRequest
- func (*GreetWithDeadLineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GreetWithDeadLineRequest) GetGreeting() *Greeting
- func (*GreetWithDeadLineRequest) ProtoMessage()
- func (x *GreetWithDeadLineRequest) ProtoReflect() protoreflect.Message
- func (x *GreetWithDeadLineRequest) Reset()
- func (x *GreetWithDeadLineRequest) String() string
- type GreetWithDeadLineResponse
- func (*GreetWithDeadLineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GreetWithDeadLineResponse) GetResult() string
- func (*GreetWithDeadLineResponse) ProtoMessage()
- func (x *GreetWithDeadLineResponse) ProtoReflect() protoreflect.Message
- func (x *GreetWithDeadLineResponse) Reset()
- func (x *GreetWithDeadLineResponse) String() string
- type Greeting
- type LongGreetRequest
- type LongGreetResponse
- type UnimplementedGreetServicesServer
- func (*UnimplementedGreetServicesServer) Greet(context.Context, *GreetRequest) (*GreetResponse, error)
- func (*UnimplementedGreetServicesServer) GreetEveryone(GreetServices_GreetEveryoneServer) error
- func (*UnimplementedGreetServicesServer) GreetManyTimes(*GreetManyTimesRequest, GreetServices_GreetManyTimesServer) error
- func (*UnimplementedGreetServicesServer) GreetWithDeadLine(context.Context, *GreetWithDeadLineRequest) (*GreetWithDeadLineResponse, error)
- func (*UnimplementedGreetServicesServer) LongGreet(GreetServices_LongGreetServer) error
Constants ¶
This section is empty.
Variables ¶
var File_greet_greetpb_greet_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreetServicesServer ¶
func RegisterGreetServicesServer(s *grpc.Server, srv GreetServicesServer)
Types ¶
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 GreetManyTimesRequest ¶
type GreetManyTimesRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
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 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 GreetServicesClient ¶
type GreetServicesClient interface { Greet(ctx context.Context, in *GreetRequest, opts ...grpc.CallOption) (*GreetResponse, error) GreetManyTimes(ctx context.Context, in *GreetManyTimesRequest, opts ...grpc.CallOption) (GreetServices_GreetManyTimesClient, error) LongGreet(ctx context.Context, opts ...grpc.CallOption) (GreetServices_LongGreetClient, error) GreetEveryone(ctx context.Context, opts ...grpc.CallOption) (GreetServices_GreetEveryoneClient, error) GreetWithDeadLine(ctx context.Context, in *GreetWithDeadLineRequest, opts ...grpc.CallOption) (*GreetWithDeadLineResponse, error) }
GreetServicesClient is the client API for GreetServices service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetServicesClient ¶
func NewGreetServicesClient(cc grpc.ClientConnInterface) GreetServicesClient
type GreetServicesServer ¶
type GreetServicesServer interface { Greet(context.Context, *GreetRequest) (*GreetResponse, error) GreetManyTimes(*GreetManyTimesRequest, GreetServices_GreetManyTimesServer) error LongGreet(GreetServices_LongGreetServer) error GreetEveryone(GreetServices_GreetEveryoneServer) error GreetWithDeadLine(context.Context, *GreetWithDeadLineRequest) (*GreetWithDeadLineResponse, error) }
GreetServicesServer is the server API for GreetServices service.
type GreetServices_GreetEveryoneClient ¶
type GreetServices_GreetEveryoneClient interface { Send(*GreetEveryoneRequest) error Recv() (*GreetEveryoneResponse, error) grpc.ClientStream }
type GreetServices_GreetEveryoneServer ¶
type GreetServices_GreetEveryoneServer interface { Send(*GreetEveryoneResponse) error Recv() (*GreetEveryoneRequest, error) grpc.ServerStream }
type GreetServices_GreetManyTimesClient ¶
type GreetServices_GreetManyTimesClient interface { Recv() (*GreetManyTimesResponse, error) grpc.ClientStream }
type GreetServices_GreetManyTimesServer ¶
type GreetServices_GreetManyTimesServer interface { Send(*GreetManyTimesResponse) error grpc.ServerStream }
type GreetServices_LongGreetClient ¶
type GreetServices_LongGreetClient interface { Send(*LongGreetRequest) error CloseAndRecv() (*LongGreetResponse, error) grpc.ClientStream }
type GreetServices_LongGreetServer ¶
type GreetServices_LongGreetServer interface { SendAndClose(*LongGreetResponse) error Recv() (*LongGreetRequest, error) grpc.ServerStream }
type GreetWithDeadLineRequest ¶
type GreetWithDeadLineRequest struct { Greeting *Greeting `protobuf:"bytes,1,opt,name=greeting,proto3" json:"greeting,omitempty"` // contains filtered or unexported fields }
func (*GreetWithDeadLineRequest) Descriptor
deprecated
func (*GreetWithDeadLineRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetWithDeadLineRequest.ProtoReflect.Descriptor instead.
func (*GreetWithDeadLineRequest) GetGreeting ¶
func (x *GreetWithDeadLineRequest) GetGreeting() *Greeting
func (*GreetWithDeadLineRequest) ProtoMessage ¶
func (*GreetWithDeadLineRequest) ProtoMessage()
func (*GreetWithDeadLineRequest) ProtoReflect ¶
func (x *GreetWithDeadLineRequest) ProtoReflect() protoreflect.Message
func (*GreetWithDeadLineRequest) Reset ¶
func (x *GreetWithDeadLineRequest) Reset()
func (*GreetWithDeadLineRequest) String ¶
func (x *GreetWithDeadLineRequest) String() string
type GreetWithDeadLineResponse ¶
type GreetWithDeadLineResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*GreetWithDeadLineResponse) Descriptor
deprecated
func (*GreetWithDeadLineResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetWithDeadLineResponse.ProtoReflect.Descriptor instead.
func (*GreetWithDeadLineResponse) GetResult ¶
func (x *GreetWithDeadLineResponse) GetResult() string
func (*GreetWithDeadLineResponse) ProtoMessage ¶
func (*GreetWithDeadLineResponse) ProtoMessage()
func (*GreetWithDeadLineResponse) ProtoReflect ¶
func (x *GreetWithDeadLineResponse) ProtoReflect() protoreflect.Message
func (*GreetWithDeadLineResponse) Reset ¶
func (x *GreetWithDeadLineResponse) Reset()
func (*GreetWithDeadLineResponse) String ¶
func (x *GreetWithDeadLineResponse) String() string
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 UnimplementedGreetServicesServer ¶
type UnimplementedGreetServicesServer struct { }
UnimplementedGreetServicesServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreetServicesServer) Greet ¶
func (*UnimplementedGreetServicesServer) Greet(context.Context, *GreetRequest) (*GreetResponse, error)
func (*UnimplementedGreetServicesServer) GreetEveryone ¶
func (*UnimplementedGreetServicesServer) GreetEveryone(GreetServices_GreetEveryoneServer) error
func (*UnimplementedGreetServicesServer) GreetManyTimes ¶
func (*UnimplementedGreetServicesServer) GreetManyTimes(*GreetManyTimesRequest, GreetServices_GreetManyTimesServer) error
func (*UnimplementedGreetServicesServer) GreetWithDeadLine ¶
func (*UnimplementedGreetServicesServer) GreetWithDeadLine(context.Context, *GreetWithDeadLineRequest) (*GreetWithDeadLineResponse, error)
func (*UnimplementedGreetServicesServer) LongGreet ¶
func (*UnimplementedGreetServicesServer) LongGreet(GreetServices_LongGreetServer) error