Documentation ¶
Index ¶
- Variables
- func RegisterPersonServiceServer(s *grpc.Server, srv PersonServiceServer)
- type ListPersonsRequest
- func (*ListPersonsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListPersonsRequest) GetPageSize() int32
- func (*ListPersonsRequest) ProtoMessage()
- func (x *ListPersonsRequest) ProtoReflect() protoreflect.Message
- func (x *ListPersonsRequest) Reset()
- func (x *ListPersonsRequest) String() string
- type ListPersonsResponse
- func (*ListPersonsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListPersonsResponse) GetPersons() []*Person
- func (*ListPersonsResponse) ProtoMessage()
- func (x *ListPersonsResponse) ProtoReflect() protoreflect.Message
- func (x *ListPersonsResponse) Reset()
- func (x *ListPersonsResponse) String() string
- type Person
- type PersonServiceClient
- type PersonServiceServer
- type UnimplementedPersonServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_person_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPersonServiceServer ¶
func RegisterPersonServiceServer(s *grpc.Server, srv PersonServiceServer)
Types ¶
type ListPersonsRequest ¶
type ListPersonsRequest struct { PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListPersonsRequest) Descriptor
deprecated
func (*ListPersonsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPersonsRequest.ProtoReflect.Descriptor instead.
func (*ListPersonsRequest) GetPageSize ¶
func (x *ListPersonsRequest) GetPageSize() int32
func (*ListPersonsRequest) ProtoMessage ¶
func (*ListPersonsRequest) ProtoMessage()
func (*ListPersonsRequest) ProtoReflect ¶
func (x *ListPersonsRequest) ProtoReflect() protoreflect.Message
func (*ListPersonsRequest) Reset ¶
func (x *ListPersonsRequest) Reset()
func (*ListPersonsRequest) String ¶
func (x *ListPersonsRequest) String() string
type ListPersonsResponse ¶
type ListPersonsResponse struct { Persons []*Person `protobuf:"bytes,1,rep,name=persons,proto3" json:"persons,omitempty"` // contains filtered or unexported fields }
func (*ListPersonsResponse) Descriptor
deprecated
func (*ListPersonsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListPersonsResponse.ProtoReflect.Descriptor instead.
func (*ListPersonsResponse) GetPersons ¶
func (x *ListPersonsResponse) GetPersons() []*Person
func (*ListPersonsResponse) ProtoMessage ¶
func (*ListPersonsResponse) ProtoMessage()
func (*ListPersonsResponse) ProtoReflect ¶
func (x *ListPersonsResponse) ProtoReflect() protoreflect.Message
func (*ListPersonsResponse) Reset ¶
func (x *ListPersonsResponse) Reset()
func (*ListPersonsResponse) String ¶
func (x *ListPersonsResponse) String() string
type Person ¶
type Person struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*Person) Descriptor
deprecated
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) ProtoReflect ¶
func (x *Person) ProtoReflect() protoreflect.Message
type PersonServiceClient ¶
type PersonServiceClient interface {
List(ctx context.Context, in *ListPersonsRequest, opts ...grpc.CallOption) (*ListPersonsResponse, error)
}
PersonServiceClient is the client API for PersonService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPersonServiceClient ¶
func NewPersonServiceClient(cc grpc.ClientConnInterface) PersonServiceClient
type PersonServiceServer ¶
type PersonServiceServer interface {
List(context.Context, *ListPersonsRequest) (*ListPersonsResponse, error)
}
PersonServiceServer is the server API for PersonService service.
type UnimplementedPersonServiceServer ¶
type UnimplementedPersonServiceServer struct { }
UnimplementedPersonServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPersonServiceServer) List ¶
func (*UnimplementedPersonServiceServer) List(context.Context, *ListPersonsRequest) (*ListPersonsResponse, error)
Click to show internal directories.
Click to hide internal directories.