Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetBalance() int32
- func (x *Customer) GetBank_ID() int32
- func (x *Customer) GetCreated_At() string
- func (x *Customer) GetCustomer_ID() int32
- func (x *Customer) GetFirst_Name() string
- func (x *Customer) GetISActive() string
- func (x *Customer) GetLast_Name() string
- func (x *Customer) GetUpdated_At() string
- func (*Customer) ProtoMessage()
- func (x *Customer) ProtoReflect() protoreflect.Message
- func (x *Customer) Reset()
- func (x *Customer) String() string
- type CustomerResponse
- func (*CustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerResponse) GetCreate_At() string
- func (x *CustomerResponse) GetCustomer_ID() int32
- func (*CustomerResponse) ProtoMessage()
- func (x *CustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CustomerResponse) Reset()
- func (x *CustomerResponse) String() string
- type CustomerServiceClient
- type CustomerServiceServer
- type UnimplementedCustomerServiceServer
- type UnsafeCustomerServiceServer
Constants ¶
This section is empty.
Variables ¶
var CustomerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "netxd_customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCustomer", Handler: _CustomerService_CreateCustomer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/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_protos_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type Customer ¶
type Customer struct { Customer_ID int32 `protobuf:"varint,1,opt,name=Customer_ID,json=CustomerID,proto3" json:"Customer_ID,omitempty"` First_Name string `protobuf:"bytes,2,opt,name=First_Name,json=FirstName,proto3" json:"First_Name,omitempty"` Last_Name string `protobuf:"bytes,3,opt,name=Last_Name,json=LastName,proto3" json:"Last_Name,omitempty"` Bank_ID int32 `protobuf:"varint,4,opt,name=Bank_ID,json=BankID,proto3" json:"Bank_ID,omitempty"` Balance int32 `protobuf:"varint,5,opt,name=Balance,proto3" json:"Balance,omitempty"` Created_At string `protobuf:"bytes,6,opt,name=Created_At,json=CreatedAt,proto3" json:"Created_At,omitempty"` Updated_At string `protobuf:"bytes,7,opt,name=Updated_At,json=UpdatedAt,proto3" json:"Updated_At,omitempty"` ISActive string `protobuf:"bytes,8,opt,name=ISActive,proto3" json:"ISActive,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetBalance ¶
func (*Customer) GetBank_ID ¶
func (*Customer) GetCreated_At ¶
func (*Customer) GetCustomer_ID ¶
func (*Customer) GetFirst_Name ¶
func (*Customer) GetISActive ¶
func (*Customer) GetLast_Name ¶
func (*Customer) GetUpdated_At ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerResponse ¶
type CustomerResponse struct { Customer_ID int32 `protobuf:"varint,1,opt,name=Customer_ID,json=CustomerID,proto3" json:"Customer_ID,omitempty"` Create_At string `protobuf:"bytes,2,opt,name=Create_At,json=CreateAt,proto3" json:"Create_At,omitempty"` // contains filtered or unexported fields }
func (*CustomerResponse) Descriptor
deprecated
func (*CustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.
func (*CustomerResponse) GetCreate_At ¶
func (x *CustomerResponse) GetCreate_At() string
func (*CustomerResponse) GetCustomer_ID ¶
func (x *CustomerResponse) GetCustomer_ID() int32
func (*CustomerResponse) ProtoMessage ¶
func (*CustomerResponse) ProtoMessage()
func (*CustomerResponse) ProtoReflect ¶
func (x *CustomerResponse) ProtoReflect() protoreflect.Message
func (*CustomerResponse) Reset ¶
func (x *CustomerResponse) Reset()
func (*CustomerResponse) String ¶
func (x *CustomerResponse) String() string
type CustomerServiceClient ¶
type CustomerServiceClient interface {
CreateCustomer(ctx context.Context, in *Customer, opts ...grpc.CallOption) (*CustomerResponse, 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 { CreateCustomer(context.Context, *Customer) (*CustomerResponse, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) CreateCustomer ¶
func (UnimplementedCustomerServiceServer) CreateCustomer(context.Context, *Customer) (*CustomerResponse, 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.