Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetBirthDate() *core.Date
- func (x *CreateRequest) GetFirstName() string
- func (x *CreateRequest) GetLastName() string
- func (x *CreateRequest) GetPhoneNumber() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetBirthDate() *core.Date
- func (x *Customer) GetFirstName() string
- func (x *Customer) GetId() int32
- func (x *Customer) GetLastName() string
- func (x *Customer) GetPhoneNumber() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type CustomerRequest
- type CustomerResponse
- type CustomerServiceClient
- type CustomerServiceServer
- type DeleteRequest
- type DeleteResponse
- type ListRequest
- type ListResponse
- type UnimplementedCustomerServiceServer
- func (UnimplementedCustomerServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedCustomerServiceServer) Customer(context.Context, *CustomerRequest) (*CustomerResponse, error)
- func (UnimplementedCustomerServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedCustomerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedCustomerServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeCustomerServiceServer
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _CustomerService_Create_Handler, }, { MethodName: "List", Handler: _CustomerService_List_Handler, }, { MethodName: "Customer", Handler: _CustomerService_Customer_Handler, }, { MethodName: "Update", Handler: _CustomerService_Update_Handler, }, { MethodName: "Delete", Handler: _CustomerService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "customer/customer.proto", }
CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_customer_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest 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"` PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` BirthDate *core.Date `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetBirthDate ¶
func (x *CreateRequest) GetBirthDate() *core.Date
func (*CreateRequest) GetFirstName ¶
func (x *CreateRequest) GetFirstName() string
func (*CreateRequest) GetLastName ¶
func (x *CreateRequest) GetLastName() string
func (*CreateRequest) GetPhoneNumber ¶
func (x *CreateRequest) GetPhoneNumber() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() int32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type Customer ¶
type Customer struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` BirthDate *core.Date `protobuf:"bytes,5,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetBirthDate ¶
func (*Customer) GetFirstName ¶
func (*Customer) GetLastName ¶
func (*Customer) GetPhoneNumber ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerRequest ¶ added in v0.0.40
type CustomerRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CustomerRequest) Descriptor
deprecated
added in
v0.0.40
func (*CustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CustomerRequest.ProtoReflect.Descriptor instead.
func (*CustomerRequest) GetId ¶ added in v0.0.40
func (x *CustomerRequest) GetId() int32
func (*CustomerRequest) ProtoMessage ¶ added in v0.0.40
func (*CustomerRequest) ProtoMessage()
func (*CustomerRequest) ProtoReflect ¶ added in v0.0.40
func (x *CustomerRequest) ProtoReflect() protoreflect.Message
func (*CustomerRequest) Reset ¶ added in v0.0.40
func (x *CustomerRequest) Reset()
func (*CustomerRequest) String ¶ added in v0.0.40
func (x *CustomerRequest) String() string
type CustomerResponse ¶ added in v0.0.40
type CustomerResponse struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*CustomerResponse) Descriptor
deprecated
added in
v0.0.40
func (*CustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.
func (*CustomerResponse) GetCustomer ¶ added in v0.0.40
func (x *CustomerResponse) GetCustomer() *Customer
func (*CustomerResponse) ProtoMessage ¶ added in v0.0.40
func (*CustomerResponse) ProtoMessage()
func (*CustomerResponse) ProtoReflect ¶ added in v0.0.40
func (x *CustomerResponse) ProtoReflect() protoreflect.Message
func (*CustomerResponse) Reset ¶ added in v0.0.40
func (x *CustomerResponse) Reset()
func (*CustomerResponse) String ¶ added in v0.0.40
func (x *CustomerResponse) String() string
type CustomerServiceClient ¶
type CustomerServiceClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Customer(ctx context.Context, in *CustomerRequest, opts ...grpc.CallOption) (*CustomerResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
CustomerServiceClient is the client API for CustomerService 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 NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc grpc.ClientConnInterface) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Customer(context.Context, *CustomerRequest) (*CustomerResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type DeleteRequest ¶ added in v0.0.40
type DeleteRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
added in
v0.0.40
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶ added in v0.0.40
func (x *DeleteRequest) GetId() int32
func (*DeleteRequest) ProtoMessage ¶ added in v0.0.40
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶ added in v0.0.40
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶ added in v0.0.40
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶ added in v0.0.40
func (x *DeleteRequest) String() string
type DeleteResponse ¶ added in v0.0.40
type DeleteResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
added in
v0.0.40
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetId ¶ added in v0.0.40
func (x *DeleteResponse) GetId() int32
func (*DeleteResponse) ProtoMessage ¶ added in v0.0.40
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶ added in v0.0.40
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶ added in v0.0.40
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶ added in v0.0.40
func (x *DeleteResponse) String() string
type ListRequest ¶ added in v0.0.40
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
added in
v0.0.40
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶ added in v0.0.40
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶ added in v0.0.40
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶ added in v0.0.40
func (x *ListRequest) Reset()
func (*ListRequest) String ¶ added in v0.0.40
func (x *ListRequest) String() string
type ListResponse ¶ added in v0.0.40
type ListResponse struct { Customers []*Customer `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
added in
v0.0.40
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCustomers ¶ added in v0.0.40
func (x *ListResponse) GetCustomers() []*Customer
func (*ListResponse) ProtoMessage ¶ added in v0.0.40
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶ added in v0.0.40
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶ added in v0.0.40
func (x *ListResponse) Reset()
func (*ListResponse) String ¶ added in v0.0.40
func (x *ListResponse) String() string
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) Create ¶
func (UnimplementedCustomerServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedCustomerServiceServer) Customer ¶ added in v0.0.40
func (UnimplementedCustomerServiceServer) Customer(context.Context, *CustomerRequest) (*CustomerResponse, error)
func (UnimplementedCustomerServiceServer) Delete ¶ added in v0.0.40
func (UnimplementedCustomerServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedCustomerServiceServer) List ¶ added in v0.0.40
func (UnimplementedCustomerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedCustomerServiceServer) Update ¶ added in v0.0.40
func (UnimplementedCustomerServiceServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeCustomerServiceServer ¶
type UnsafeCustomerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCustomerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CustomerServiceServer will result in compilation errors.
type UpdateRequest ¶ added in v0.0.40
type UpdateRequest struct { Customer *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
added in
v0.0.40
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetCustomer ¶ added in v0.0.40
func (x *UpdateRequest) GetCustomer() *Customer
func (*UpdateRequest) ProtoMessage ¶ added in v0.0.40
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶ added in v0.0.40
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶ added in v0.0.40
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶ added in v0.0.40
func (x *UpdateRequest) String() string
type UpdateResponse ¶ added in v0.0.40
type UpdateResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
added in
v0.0.40
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetId ¶ added in v0.0.40
func (x *UpdateResponse) GetId() int32
func (*UpdateResponse) ProtoMessage ¶ added in v0.0.40
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶ added in v0.0.40
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶ added in v0.0.40
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶ added in v0.0.40
func (x *UpdateResponse) String() string