Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)
- type CustomerRequest
- func (*CustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerRequest) GetBalance() int64
- func (x *CustomerRequest) GetBankId() int64
- func (x *CustomerRequest) GetCreatedAt() string
- func (x *CustomerRequest) GetCustomerId() int64
- func (x *CustomerRequest) GetFirstname() string
- func (x *CustomerRequest) GetIsActive() bool
- func (x *CustomerRequest) GetLastname() string
- func (x *CustomerRequest) GetUpdatesAt() string
- func (*CustomerRequest) ProtoMessage()
- func (x *CustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CustomerRequest) Reset()
- func (x *CustomerRequest) String() string
- type CustomerResponse
- func (*CustomerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerResponse) GetCreatedAt() string
- func (x *CustomerResponse) GetCustomerId() int64
- 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: "customer.CustomerService", HandlerType: (*CustomerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCustomer", Handler: _CustomerService_CreateCustomer_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 CustomerRequest ¶
type CustomerRequest 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 (*CustomerRequest) Descriptor
deprecated
func (*CustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CustomerRequest.ProtoReflect.Descriptor instead.
func (*CustomerRequest) GetBalance ¶
func (x *CustomerRequest) GetBalance() int64
func (*CustomerRequest) GetBankId ¶
func (x *CustomerRequest) GetBankId() int64
func (*CustomerRequest) GetCreatedAt ¶
func (x *CustomerRequest) GetCreatedAt() string
func (*CustomerRequest) GetCustomerId ¶
func (x *CustomerRequest) GetCustomerId() int64
func (*CustomerRequest) GetFirstname ¶
func (x *CustomerRequest) GetFirstname() string
func (*CustomerRequest) GetIsActive ¶
func (x *CustomerRequest) GetIsActive() bool
func (*CustomerRequest) GetLastname ¶
func (x *CustomerRequest) GetLastname() string
func (*CustomerRequest) GetUpdatesAt ¶
func (x *CustomerRequest) GetUpdatesAt() string
func (*CustomerRequest) ProtoMessage ¶
func (*CustomerRequest) ProtoMessage()
func (*CustomerRequest) ProtoReflect ¶
func (x *CustomerRequest) ProtoReflect() protoreflect.Message
func (*CustomerRequest) Reset ¶
func (x *CustomerRequest) Reset()
func (*CustomerRequest) String ¶
func (x *CustomerRequest) String() string
type CustomerResponse ¶
type CustomerResponse 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 (*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() int64
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 *CustomerRequest, 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, *CustomerRequest) (*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, *CustomerRequest) (*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.