Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type CustomerServiceClient
- type CustomerServiceServer
- type DetailResponse
- func (*DetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DetailResponse) GetCreatedAt() string
- func (x *DetailResponse) GetCustomerId() int64
- func (*DetailResponse) ProtoMessage()
- func (x *DetailResponse) ProtoReflect() protoreflect.Message
- func (x *DetailResponse) Reset()
- func (x *DetailResponse) String() string
- type Details
- func (*Details) Descriptor() ([]byte, []int)deprecated
- func (x *Details) GetBalance() int64
- func (x *Details) GetBankId() int64
- func (x *Details) GetCreatedAt() string
- func (x *Details) GetCustomerId() int64
- func (x *Details) GetFirstname() string
- func (x *Details) GetIsActive() bool
- func (x *Details) GetLastname() string
- func (x *Details) GetUpdatesAt() string
- func (*Details) ProtoMessage()
- func (x *Details) ProtoReflect() protoreflect.Message
- func (x *Details) Reset()
- func (x *Details) String() string
- 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 CustomerServiceClient ¶
type CustomerServiceClient interface {
CreateCustomer(ctx context.Context, in *Details, opts ...grpc.CallOption) (*DetailResponse, 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, *Details) (*DetailResponse, error) // contains filtered or unexported methods }
CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility
type DetailResponse ¶
type DetailResponse struct { CustomerId int64 `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 (*DetailResponse) Descriptor
deprecated
func (*DetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use DetailResponse.ProtoReflect.Descriptor instead.
func (*DetailResponse) GetCreatedAt ¶
func (x *DetailResponse) GetCreatedAt() string
func (*DetailResponse) GetCustomerId ¶
func (x *DetailResponse) GetCustomerId() int64
func (*DetailResponse) ProtoMessage ¶
func (*DetailResponse) ProtoMessage()
func (*DetailResponse) ProtoReflect ¶
func (x *DetailResponse) ProtoReflect() protoreflect.Message
func (*DetailResponse) Reset ¶
func (x *DetailResponse) Reset()
func (*DetailResponse) String ¶
func (x *DetailResponse) String() string
type Details ¶
type Details struct { CustomerId int64 `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 int64 `protobuf:"varint,4,opt,name=BankId,proto3" json:"BankId,omitempty"` Balance int64 `protobuf:"varint,5,opt,name=Balance,proto3" json:"Balance,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatesAt string `protobuf:"bytes,7,opt,name=UpdatesAt,proto3" json:"UpdatesAt,omitempty"` IsActive bool `protobuf:"varint,8,opt,name=IsActive,proto3" json:"IsActive,omitempty"` // contains filtered or unexported fields }
func (*Details) Descriptor
deprecated
func (*Details) GetBalance ¶
func (*Details) GetCreatedAt ¶
func (*Details) GetCustomerId ¶
func (*Details) GetFirstname ¶
func (*Details) GetIsActive ¶
func (*Details) GetLastname ¶
func (*Details) GetUpdatesAt ¶
func (*Details) ProtoMessage ¶
func (*Details) ProtoMessage()
func (*Details) ProtoReflect ¶
func (x *Details) ProtoReflect() protoreflect.Message
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCustomerServiceServer) CreateCustomer ¶
func (UnimplementedCustomerServiceServer) CreateCustomer(context.Context, *Details) (*DetailResponse, 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.