Documentation ¶
Index ¶
- Variables
- func RegisterPersoncrudServer(s grpc.ServiceRegistrar, srv PersoncrudServer)
- type CreatePersonReply
- type CreatePersonRequest
- func (*CreatePersonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePersonRequest) GetEmail() string
- func (x *CreatePersonRequest) GetFirstName() string
- func (x *CreatePersonRequest) GetId() int32
- func (x *CreatePersonRequest) GetLastName() string
- func (*CreatePersonRequest) ProtoMessage()
- func (x *CreatePersonRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePersonRequest) Reset()
- func (x *CreatePersonRequest) String() string
- type GetPersonRequest
- type ListPersonReply
- type ListPersonRequest
- type PersonReply
- func (*PersonReply) Descriptor() ([]byte, []int)deprecated
- func (x *PersonReply) GetEmail() string
- func (x *PersonReply) GetFirstName() string
- func (x *PersonReply) GetId() int32
- func (x *PersonReply) GetLastName() string
- func (*PersonReply) ProtoMessage()
- func (x *PersonReply) ProtoReflect() protoreflect.Message
- func (x *PersonReply) Reset()
- func (x *PersonReply) String() string
- type PersoncrudClient
- type PersoncrudServer
- type UnimplementedPersoncrudServer
- func (UnimplementedPersoncrudServer) CreatePerson(context.Context, *CreatePersonRequest) (*CreatePersonReply, error)
- func (UnimplementedPersoncrudServer) GetPerson(context.Context, *GetPersonRequest) (*PersonReply, error)
- func (UnimplementedPersoncrudServer) ListPersons(context.Context, *ListPersonRequest) (*ListPersonReply, error)
- func (UnimplementedPersoncrudServer) UpdatePerson(context.Context, *UpdatePersonRequest) (*PersonReply, error)
- type UnsafePersoncrudServer
- type UpdatePersonRequest
- func (*UpdatePersonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePersonRequest) GetEmail() string
- func (x *UpdatePersonRequest) GetFirstName() string
- func (x *UpdatePersonRequest) GetId() int32
- func (x *UpdatePersonRequest) GetLastName() string
- func (*UpdatePersonRequest) ProtoMessage()
- func (x *UpdatePersonRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePersonRequest) Reset()
- func (x *UpdatePersonRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_personcrud_personcrud_proto protoreflect.FileDescriptor
var Personcrud_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.personcrud.Personcrud", HandlerType: (*PersoncrudServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreatePerson", Handler: _Personcrud_CreatePerson_Handler, }, { MethodName: "UpdatePerson", Handler: _Personcrud_UpdatePerson_Handler, }, { MethodName: "GetPerson", Handler: _Personcrud_GetPerson_Handler, }, { MethodName: "ListPersons", Handler: _Personcrud_ListPersons_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/personcrud/personcrud.proto", }
Personcrud_ServiceDesc is the grpc.ServiceDesc for Personcrud service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPersoncrudServer ¶
func RegisterPersoncrudServer(s grpc.ServiceRegistrar, srv PersoncrudServer)
Types ¶
type CreatePersonReply ¶
type CreatePersonReply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreatePersonReply) Descriptor
deprecated
func (*CreatePersonReply) Descriptor() ([]byte, []int)
Deprecated: Use CreatePersonReply.ProtoReflect.Descriptor instead.
func (*CreatePersonReply) GetId ¶
func (x *CreatePersonReply) GetId() int32
func (*CreatePersonReply) ProtoMessage ¶
func (*CreatePersonReply) ProtoMessage()
func (*CreatePersonReply) ProtoReflect ¶
func (x *CreatePersonReply) ProtoReflect() protoreflect.Message
func (*CreatePersonReply) Reset ¶
func (x *CreatePersonReply) Reset()
func (*CreatePersonReply) String ¶
func (x *CreatePersonReply) String() string
type CreatePersonRequest ¶
type CreatePersonRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*CreatePersonRequest) Descriptor
deprecated
func (*CreatePersonRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePersonRequest.ProtoReflect.Descriptor instead.
func (*CreatePersonRequest) GetEmail ¶
func (x *CreatePersonRequest) GetEmail() string
func (*CreatePersonRequest) GetFirstName ¶
func (x *CreatePersonRequest) GetFirstName() string
func (*CreatePersonRequest) GetId ¶
func (x *CreatePersonRequest) GetId() int32
func (*CreatePersonRequest) GetLastName ¶
func (x *CreatePersonRequest) GetLastName() string
func (*CreatePersonRequest) ProtoMessage ¶
func (*CreatePersonRequest) ProtoMessage()
func (*CreatePersonRequest) ProtoReflect ¶
func (x *CreatePersonRequest) ProtoReflect() protoreflect.Message
func (*CreatePersonRequest) Reset ¶
func (x *CreatePersonRequest) Reset()
func (*CreatePersonRequest) String ¶
func (x *CreatePersonRequest) String() string
type GetPersonRequest ¶
type GetPersonRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetPersonRequest) Descriptor
deprecated
func (*GetPersonRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPersonRequest.ProtoReflect.Descriptor instead.
func (*GetPersonRequest) GetId ¶
func (x *GetPersonRequest) GetId() int32
func (*GetPersonRequest) ProtoMessage ¶
func (*GetPersonRequest) ProtoMessage()
func (*GetPersonRequest) ProtoReflect ¶
func (x *GetPersonRequest) ProtoReflect() protoreflect.Message
func (*GetPersonRequest) Reset ¶
func (x *GetPersonRequest) Reset()
func (*GetPersonRequest) String ¶
func (x *GetPersonRequest) String() string
type ListPersonReply ¶
type ListPersonReply struct { Persons []*PersonReply `protobuf:"bytes,1,rep,name=persons,proto3" json:"persons,omitempty"` // contains filtered or unexported fields }
func (*ListPersonReply) Descriptor
deprecated
func (*ListPersonReply) Descriptor() ([]byte, []int)
Deprecated: Use ListPersonReply.ProtoReflect.Descriptor instead.
func (*ListPersonReply) GetPersons ¶
func (x *ListPersonReply) GetPersons() []*PersonReply
func (*ListPersonReply) ProtoMessage ¶
func (*ListPersonReply) ProtoMessage()
func (*ListPersonReply) ProtoReflect ¶
func (x *ListPersonReply) ProtoReflect() protoreflect.Message
func (*ListPersonReply) Reset ¶
func (x *ListPersonReply) Reset()
func (*ListPersonReply) String ¶
func (x *ListPersonReply) String() string
type ListPersonRequest ¶
type ListPersonRequest struct { LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` // contains filtered or unexported fields }
func (*ListPersonRequest) Descriptor
deprecated
func (*ListPersonRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListPersonRequest.ProtoReflect.Descriptor instead.
func (*ListPersonRequest) GetLastName ¶
func (x *ListPersonRequest) GetLastName() string
func (*ListPersonRequest) ProtoMessage ¶
func (*ListPersonRequest) ProtoMessage()
func (*ListPersonRequest) ProtoReflect ¶
func (x *ListPersonRequest) ProtoReflect() protoreflect.Message
func (*ListPersonRequest) Reset ¶
func (x *ListPersonRequest) Reset()
func (*ListPersonRequest) String ¶
func (x *ListPersonRequest) String() string
type PersonReply ¶
type PersonReply struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*PersonReply) Descriptor
deprecated
func (*PersonReply) Descriptor() ([]byte, []int)
Deprecated: Use PersonReply.ProtoReflect.Descriptor instead.
func (*PersonReply) GetEmail ¶
func (x *PersonReply) GetEmail() string
func (*PersonReply) GetFirstName ¶
func (x *PersonReply) GetFirstName() string
func (*PersonReply) GetId ¶
func (x *PersonReply) GetId() int32
func (*PersonReply) GetLastName ¶
func (x *PersonReply) GetLastName() string
func (*PersonReply) ProtoMessage ¶
func (*PersonReply) ProtoMessage()
func (*PersonReply) ProtoReflect ¶
func (x *PersonReply) ProtoReflect() protoreflect.Message
func (*PersonReply) Reset ¶
func (x *PersonReply) Reset()
func (*PersonReply) String ¶
func (x *PersonReply) String() string
type PersoncrudClient ¶
type PersoncrudClient interface { CreatePerson(ctx context.Context, in *CreatePersonRequest, opts ...grpc.CallOption) (*CreatePersonReply, error) UpdatePerson(ctx context.Context, in *UpdatePersonRequest, opts ...grpc.CallOption) (*PersonReply, error) GetPerson(ctx context.Context, in *GetPersonRequest, opts ...grpc.CallOption) (*PersonReply, error) ListPersons(ctx context.Context, in *ListPersonRequest, opts ...grpc.CallOption) (*ListPersonReply, error) }
PersoncrudClient is the client API for Personcrud 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 NewPersoncrudClient ¶
func NewPersoncrudClient(cc grpc.ClientConnInterface) PersoncrudClient
type PersoncrudServer ¶
type PersoncrudServer interface { CreatePerson(context.Context, *CreatePersonRequest) (*CreatePersonReply, error) UpdatePerson(context.Context, *UpdatePersonRequest) (*PersonReply, error) GetPerson(context.Context, *GetPersonRequest) (*PersonReply, error) ListPersons(context.Context, *ListPersonRequest) (*ListPersonReply, error) // contains filtered or unexported methods }
PersoncrudServer is the server API for Personcrud service. All implementations must embed UnimplementedPersoncrudServer for forward compatibility
type UnimplementedPersoncrudServer ¶
type UnimplementedPersoncrudServer struct { }
UnimplementedPersoncrudServer must be embedded to have forward compatible implementations.
func (UnimplementedPersoncrudServer) CreatePerson ¶
func (UnimplementedPersoncrudServer) CreatePerson(context.Context, *CreatePersonRequest) (*CreatePersonReply, error)
func (UnimplementedPersoncrudServer) GetPerson ¶
func (UnimplementedPersoncrudServer) GetPerson(context.Context, *GetPersonRequest) (*PersonReply, error)
func (UnimplementedPersoncrudServer) ListPersons ¶
func (UnimplementedPersoncrudServer) ListPersons(context.Context, *ListPersonRequest) (*ListPersonReply, error)
func (UnimplementedPersoncrudServer) UpdatePerson ¶
func (UnimplementedPersoncrudServer) UpdatePerson(context.Context, *UpdatePersonRequest) (*PersonReply, error)
type UnsafePersoncrudServer ¶
type UnsafePersoncrudServer interface {
// contains filtered or unexported methods
}
UnsafePersoncrudServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PersoncrudServer will result in compilation errors.
type UpdatePersonRequest ¶
type UpdatePersonRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*UpdatePersonRequest) Descriptor
deprecated
func (*UpdatePersonRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePersonRequest.ProtoReflect.Descriptor instead.
func (*UpdatePersonRequest) GetEmail ¶
func (x *UpdatePersonRequest) GetEmail() string
func (*UpdatePersonRequest) GetFirstName ¶
func (x *UpdatePersonRequest) GetFirstName() string
func (*UpdatePersonRequest) GetId ¶
func (x *UpdatePersonRequest) GetId() int32
func (*UpdatePersonRequest) GetLastName ¶
func (x *UpdatePersonRequest) GetLastName() string
func (*UpdatePersonRequest) ProtoMessage ¶
func (*UpdatePersonRequest) ProtoMessage()
func (*UpdatePersonRequest) ProtoReflect ¶
func (x *UpdatePersonRequest) ProtoReflect() protoreflect.Message
func (*UpdatePersonRequest) Reset ¶
func (x *UpdatePersonRequest) Reset()
func (*UpdatePersonRequest) String ¶
func (x *UpdatePersonRequest) String() string