Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)deprecated
- func (x *Customer) GetBalance() float32
- func (x *Customer) GetBankId() int32
- func (x *Customer) GetCreatedAt() string
- func (x *Customer) GetCustomerId() int32
- func (x *Customer) GetFirstName() string
- func (x *Customer) GetIsActive() bool
- func (x *Customer) GetLastName() string
- func (x *Customer) GetUpdatedAt() 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) GetCreatedAt() string
- func (x *CustomerResponse) GetCustomerId() 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: "netxd_customer/netxd_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_netxd_customer_netxd_customer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
Types ¶
type Customer ¶
type Customer struct { CustomerId int32 `protobuf:"varint,1,opt,name=CustomerId,proto3" json:"CustomerId,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"` BankId int32 `protobuf:"varint,4,opt,name=BankId,proto3" json:"BankId,omitempty"` Balance float32 `protobuf:"fixed32,5,opt,name=Balance,proto3" json:"Balance,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt string `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` IsActive bool `protobuf:"varint,8,opt,name=IsActive,proto3" json:"IsActive,omitempty"` // contains filtered or unexported fields }
func (*Customer) Descriptor
deprecated
func (*Customer) GetBalance ¶
func (*Customer) GetCreatedAt ¶
func (*Customer) GetCustomerId ¶
func (*Customer) GetFirstName ¶
func (*Customer) GetIsActive ¶
func (*Customer) GetLastName ¶
func (*Customer) GetUpdatedAt ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) ProtoReflect ¶
func (x *Customer) ProtoReflect() protoreflect.Message
type CustomerResponse ¶
type CustomerResponse struct { CustomerId int32 `protobuf:"varint,1,opt,name=CustomerId,proto3" json:"CustomerId,omitempty"` CreatedAt string `protobuf:"bytes,2,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` // contains filtered or unexported fields }
func (*CustomerResponse) Descriptor
deprecated
func (*CustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CustomerResponse.ProtoReflect.Descriptor instead.
func (*CustomerResponse) GetCreatedAt ¶
func (x *CustomerResponse) GetCreatedAt() string
func (*CustomerResponse) GetCustomerId ¶
func (x *CustomerResponse) GetCustomerId() 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.