Documentation ¶
Overview ¶
Package loan is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLoanAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLoanAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LoanAPIClient) error
- func RegisterLoanAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLoanAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LoanAPIServer) error
- func RegisterLoanAPIServer(s grpc.ServiceRegistrar, srv LoanAPIServer)
- func RegisterLoanProductAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLoanProductAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LoanProductAPIClient) error
- func RegisterLoanProductAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLoanProductAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LoanProductAPIServer) error
- func RegisterLoanProductAPIServer(s grpc.ServiceRegistrar, srv LoanProductAPIServer)
- type ApproveLoanRequest
- func (*ApproveLoanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveLoanRequest) GetAccountName() string
- func (x *ApproveLoanRequest) GetLoanId() string
- func (*ApproveLoanRequest) ProtoMessage()
- func (x *ApproveLoanRequest) ProtoReflect() protoreflect.Message
- func (x *ApproveLoanRequest) Reset()
- func (x *ApproveLoanRequest) String() string
- type CreateLoanProductRequest
- func (*CreateLoanProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLoanProductRequest) GetLoanProduct() *LoanProduct
- func (*CreateLoanProductRequest) ProtoMessage()
- func (x *CreateLoanProductRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLoanProductRequest) Reset()
- func (x *CreateLoanProductRequest) String() string
- type CreateLoanRequest
- type DeleteLoanProductRequest
- func (*DeleteLoanProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteLoanProductRequest) GetProductId() string
- func (*DeleteLoanProductRequest) ProtoMessage()
- func (x *DeleteLoanProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteLoanProductRequest) Reset()
- func (x *DeleteLoanProductRequest) String() string
- type GetLoanProductRequest
- func (*GetLoanProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLoanProductRequest) GetProductId() string
- func (*GetLoanProductRequest) ProtoMessage()
- func (x *GetLoanProductRequest) ProtoReflect() protoreflect.Message
- func (x *GetLoanProductRequest) Reset()
- func (x *GetLoanProductRequest) String() string
- type GetLoanRequest
- type ListLoanProductsRequest
- func (*ListLoanProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListLoanProductsRequest) GetFilter() *LoanProductFilter
- func (x *ListLoanProductsRequest) GetPageSize() int32
- func (x *ListLoanProductsRequest) GetPageToken() string
- func (*ListLoanProductsRequest) ProtoMessage()
- func (x *ListLoanProductsRequest) ProtoReflect() protoreflect.Message
- func (x *ListLoanProductsRequest) Reset()
- func (x *ListLoanProductsRequest) String() string
- type ListLoanProductsResponse
- func (*ListLoanProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLoanProductsResponse) GetLoanProducts() []*LoanProduct
- func (x *ListLoanProductsResponse) GetNextPageToken() string
- func (*ListLoanProductsResponse) ProtoMessage()
- func (x *ListLoanProductsResponse) ProtoReflect() protoreflect.Message
- func (x *ListLoanProductsResponse) Reset()
- func (x *ListLoanProductsResponse) String() string
- type ListLoansRequest
- func (*ListLoansRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListLoansRequest) GetFilter() *LoanFilter
- func (x *ListLoansRequest) GetPageSize() int32
- func (x *ListLoansRequest) GetPageToken() string
- func (*ListLoansRequest) ProtoMessage()
- func (x *ListLoansRequest) ProtoReflect() protoreflect.Message
- func (x *ListLoansRequest) Reset()
- func (x *ListLoansRequest) String() string
- type ListLoansResponse
- func (*ListLoansResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLoansResponse) GetLoans() []*Loan
- func (x *ListLoansResponse) GetNextPageToken() string
- func (*ListLoansResponse) ProtoMessage()
- func (x *ListLoansResponse) ProtoReflect() protoreflect.Message
- func (x *ListLoansResponse) Reset()
- func (x *ListLoansResponse) String() string
- type Loan
- func (*Loan) Descriptor() ([]byte, []int)deprecated
- func (x *Loan) GetApproved() bool
- func (x *Loan) GetBorrowedDate() string
- func (x *Loan) GetChamaId() string
- func (x *Loan) GetDurationDays() int32
- func (x *Loan) GetInterestRate() float32
- func (x *Loan) GetLoanAmount() float64
- func (x *Loan) GetLoanId() string
- func (x *Loan) GetLoaneeEmail() string
- func (x *Loan) GetLoaneeNames() string
- func (x *Loan) GetLoaneePhone() string
- func (x *Loan) GetMemberId() string
- func (x *Loan) GetNationalId() string
- func (x *Loan) GetPenaltyAmount() float64
- func (x *Loan) GetProductId() string
- func (x *Loan) GetSettledAmount() float64
- func (x *Loan) GetStatus() LoanStatus
- func (x *Loan) GetUpdatedDate() string
- func (*Loan) ProtoMessage()
- func (x *Loan) ProtoReflect() protoreflect.Message
- func (x *Loan) Reset()
- func (x *Loan) String() string
- type LoanAPIClient
- type LoanAPIServer
- type LoanFilter
- func (*LoanFilter) Descriptor() ([]byte, []int)deprecated
- func (x *LoanFilter) GetChamaIds() []string
- func (x *LoanFilter) GetProductIds() []string
- func (*LoanFilter) ProtoMessage()
- func (x *LoanFilter) ProtoReflect() protoreflect.Message
- func (x *LoanFilter) Reset()
- func (x *LoanFilter) String() string
- type LoanProduct
- func (*LoanProduct) Descriptor() ([]byte, []int)deprecated
- func (x *LoanProduct) GetActiveLoans() int32
- func (x *LoanProduct) GetChamaId() string
- func (x *LoanProduct) GetCreatedDate() string
- func (x *LoanProduct) GetDescription() string
- func (x *LoanProduct) GetInterestRate() float32
- func (x *LoanProduct) GetLoanAccountBalance() float64
- func (x *LoanProduct) GetLoanDurationDays() int32
- func (x *LoanProduct) GetLoanInterestBalance() float64
- func (x *LoanProduct) GetLoanMaximumAmount() float64
- func (x *LoanProduct) GetLoanMinimumAmount() float64
- func (x *LoanProduct) GetLoanSettledBalance() float64
- func (x *LoanProduct) GetName() string
- func (x *LoanProduct) GetProductId() string
- func (x *LoanProduct) GetSettledLoans() int32
- func (x *LoanProduct) GetTotalLoans() int32
- func (x *LoanProduct) GetUpdatedDate() string
- func (*LoanProduct) ProtoMessage()
- func (x *LoanProduct) ProtoReflect() protoreflect.Message
- func (x *LoanProduct) Reset()
- func (x *LoanProduct) String() string
- type LoanProductAPIClient
- type LoanProductAPIServer
- type LoanProductFilter
- func (*LoanProductFilter) Descriptor() ([]byte, []int)deprecated
- func (x *LoanProductFilter) GetChamaIds() []string
- func (*LoanProductFilter) ProtoMessage()
- func (x *LoanProductFilter) ProtoReflect() protoreflect.Message
- func (x *LoanProductFilter) Reset()
- func (x *LoanProductFilter) String() string
- type LoanStatus
- type UnimplementedLoanAPIServer
- func (UnimplementedLoanAPIServer) ApproveLoan(context.Context, *ApproveLoanRequest) (*emptypb.Empty, error)
- func (UnimplementedLoanAPIServer) CreateLoan(context.Context, *CreateLoanRequest) (*emptypb.Empty, error)
- func (UnimplementedLoanAPIServer) GetLoan(context.Context, *GetLoanRequest) (*Loan, error)
- func (UnimplementedLoanAPIServer) ListLoans(context.Context, *ListLoansRequest) (*ListLoansResponse, error)
- func (UnimplementedLoanAPIServer) UpdateLoan(context.Context, *UpdateLoanRequest) (*emptypb.Empty, error)
- type UnimplementedLoanProductAPIServer
- func (UnimplementedLoanProductAPIServer) CreateLoanProduct(context.Context, *CreateLoanProductRequest) (*emptypb.Empty, error)
- func (UnimplementedLoanProductAPIServer) DeleteLoanProduct(context.Context, *DeleteLoanProductRequest) (*emptypb.Empty, error)
- func (UnimplementedLoanProductAPIServer) GetLoanProduct(context.Context, *GetLoanProductRequest) (*LoanProduct, error)
- func (UnimplementedLoanProductAPIServer) ListLoanProducts(context.Context, *ListLoanProductsRequest) (*ListLoanProductsResponse, error)
- func (UnimplementedLoanProductAPIServer) UpdateLoanProduct(context.Context, *UpdateLoanProductRequest) (*emptypb.Empty, error)
- type UnsafeLoanAPIServer
- type UnsafeLoanProductAPIServer
- type UpdateLoanProductRequest
- func (*UpdateLoanProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLoanProductRequest) GetLoanProduct() *LoanProduct
- func (*UpdateLoanProductRequest) ProtoMessage()
- func (x *UpdateLoanProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLoanProductRequest) Reset()
- func (x *UpdateLoanProductRequest) String() string
- type UpdateLoanRequest
Constants ¶
This section is empty.
Variables ¶
var ( LoanStatus_name = map[int32]string{ 0: "WAITING_APPROVAL", 1: "APPROVED", 2: "FUNDS_WITHDRAWN_ACCOUNT", 3: "WAITING_FUNDS_TRANSFER", 4: "FUNDS_TRANSFERED", } LoanStatus_value = map[string]int32{ "WAITING_APPROVAL": 0, "APPROVED": 1, "FUNDS_WITHDRAWN_ACCOUNT": 2, "WAITING_FUNDS_TRANSFER": 3, "FUNDS_TRANSFERED": 4, } )
Enum value maps for LoanStatus.
var File_loan_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLoanAPIHandler ¶
func RegisterLoanAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLoanAPIHandler registers the http handlers for service LoanAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLoanAPIHandlerClient ¶
func RegisterLoanAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LoanAPIClient) error
RegisterLoanAPIHandlerClient registers the http handlers for service LoanAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LoanAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LoanAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LoanAPIClient" to call the correct interceptors.
func RegisterLoanAPIHandlerFromEndpoint ¶
func RegisterLoanAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLoanAPIHandlerFromEndpoint is same as RegisterLoanAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLoanAPIHandlerServer ¶
func RegisterLoanAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LoanAPIServer) error
RegisterLoanAPIHandlerServer registers the http handlers for service LoanAPI to "mux". UnaryRPC :call LoanAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLoanAPIHandlerFromEndpoint instead.
func RegisterLoanAPIServer ¶
func RegisterLoanAPIServer(s grpc.ServiceRegistrar, srv LoanAPIServer)
func RegisterLoanProductAPIHandler ¶
func RegisterLoanProductAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLoanProductAPIHandler registers the http handlers for service LoanProductAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLoanProductAPIHandlerClient ¶
func RegisterLoanProductAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LoanProductAPIClient) error
RegisterLoanProductAPIHandlerClient registers the http handlers for service LoanProductAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LoanProductAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LoanProductAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LoanProductAPIClient" to call the correct interceptors.
func RegisterLoanProductAPIHandlerFromEndpoint ¶
func RegisterLoanProductAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLoanProductAPIHandlerFromEndpoint is same as RegisterLoanProductAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLoanProductAPIHandlerServer ¶
func RegisterLoanProductAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LoanProductAPIServer) error
RegisterLoanProductAPIHandlerServer registers the http handlers for service LoanProductAPI to "mux". UnaryRPC :call LoanProductAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLoanProductAPIHandlerFromEndpoint instead.
func RegisterLoanProductAPIServer ¶
func RegisterLoanProductAPIServer(s grpc.ServiceRegistrar, srv LoanProductAPIServer)
Types ¶
type ApproveLoanRequest ¶
type ApproveLoanRequest struct { LoanId string `protobuf:"bytes,1,opt,name=loan_id,json=loanId,proto3" json:"loan_id,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // contains filtered or unexported fields }
func (*ApproveLoanRequest) Descriptor
deprecated
func (*ApproveLoanRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApproveLoanRequest.ProtoReflect.Descriptor instead.
func (*ApproveLoanRequest) GetAccountName ¶
func (x *ApproveLoanRequest) GetAccountName() string
func (*ApproveLoanRequest) GetLoanId ¶
func (x *ApproveLoanRequest) GetLoanId() string
func (*ApproveLoanRequest) ProtoMessage ¶
func (*ApproveLoanRequest) ProtoMessage()
func (*ApproveLoanRequest) ProtoReflect ¶
func (x *ApproveLoanRequest) ProtoReflect() protoreflect.Message
func (*ApproveLoanRequest) Reset ¶
func (x *ApproveLoanRequest) Reset()
func (*ApproveLoanRequest) String ¶
func (x *ApproveLoanRequest) String() string
type CreateLoanProductRequest ¶
type CreateLoanProductRequest struct { LoanProduct *LoanProduct `protobuf:"bytes,1,opt,name=loan_product,json=loanProduct,proto3" json:"loan_product,omitempty"` // contains filtered or unexported fields }
func (*CreateLoanProductRequest) Descriptor
deprecated
func (*CreateLoanProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoanProductRequest.ProtoReflect.Descriptor instead.
func (*CreateLoanProductRequest) GetLoanProduct ¶
func (x *CreateLoanProductRequest) GetLoanProduct() *LoanProduct
func (*CreateLoanProductRequest) ProtoMessage ¶
func (*CreateLoanProductRequest) ProtoMessage()
func (*CreateLoanProductRequest) ProtoReflect ¶
func (x *CreateLoanProductRequest) ProtoReflect() protoreflect.Message
func (*CreateLoanProductRequest) Reset ¶
func (x *CreateLoanProductRequest) Reset()
func (*CreateLoanProductRequest) String ¶
func (x *CreateLoanProductRequest) String() string
type CreateLoanRequest ¶
type CreateLoanRequest struct { Loan *Loan `protobuf:"bytes,1,opt,name=loan,proto3" json:"loan,omitempty"` // contains filtered or unexported fields }
func (*CreateLoanRequest) Descriptor
deprecated
func (*CreateLoanRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLoanRequest.ProtoReflect.Descriptor instead.
func (*CreateLoanRequest) GetLoan ¶
func (x *CreateLoanRequest) GetLoan() *Loan
func (*CreateLoanRequest) ProtoMessage ¶
func (*CreateLoanRequest) ProtoMessage()
func (*CreateLoanRequest) ProtoReflect ¶
func (x *CreateLoanRequest) ProtoReflect() protoreflect.Message
func (*CreateLoanRequest) Reset ¶
func (x *CreateLoanRequest) Reset()
func (*CreateLoanRequest) String ¶
func (x *CreateLoanRequest) String() string
type DeleteLoanProductRequest ¶
type DeleteLoanProductRequest struct { ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteLoanProductRequest) Descriptor
deprecated
func (*DeleteLoanProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteLoanProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteLoanProductRequest) GetProductId ¶
func (x *DeleteLoanProductRequest) GetProductId() string
func (*DeleteLoanProductRequest) ProtoMessage ¶
func (*DeleteLoanProductRequest) ProtoMessage()
func (*DeleteLoanProductRequest) ProtoReflect ¶
func (x *DeleteLoanProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteLoanProductRequest) Reset ¶
func (x *DeleteLoanProductRequest) Reset()
func (*DeleteLoanProductRequest) String ¶
func (x *DeleteLoanProductRequest) String() string
type GetLoanProductRequest ¶
type GetLoanProductRequest struct { ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
func (*GetLoanProductRequest) Descriptor
deprecated
func (*GetLoanProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoanProductRequest.ProtoReflect.Descriptor instead.
func (*GetLoanProductRequest) GetProductId ¶
func (x *GetLoanProductRequest) GetProductId() string
func (*GetLoanProductRequest) ProtoMessage ¶
func (*GetLoanProductRequest) ProtoMessage()
func (*GetLoanProductRequest) ProtoReflect ¶
func (x *GetLoanProductRequest) ProtoReflect() protoreflect.Message
func (*GetLoanProductRequest) Reset ¶
func (x *GetLoanProductRequest) Reset()
func (*GetLoanProductRequest) String ¶
func (x *GetLoanProductRequest) String() string
type GetLoanRequest ¶
type GetLoanRequest struct { LoanId string `protobuf:"bytes,1,opt,name=loan_id,json=loanId,proto3" json:"loan_id,omitempty"` // contains filtered or unexported fields }
func (*GetLoanRequest) Descriptor
deprecated
func (*GetLoanRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLoanRequest.ProtoReflect.Descriptor instead.
func (*GetLoanRequest) GetLoanId ¶
func (x *GetLoanRequest) GetLoanId() string
func (*GetLoanRequest) ProtoMessage ¶
func (*GetLoanRequest) ProtoMessage()
func (*GetLoanRequest) ProtoReflect ¶
func (x *GetLoanRequest) ProtoReflect() protoreflect.Message
func (*GetLoanRequest) Reset ¶
func (x *GetLoanRequest) Reset()
func (*GetLoanRequest) String ¶
func (x *GetLoanRequest) String() string
type ListLoanProductsRequest ¶
type ListLoanProductsRequest struct { Filter *LoanProductFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListLoanProductsRequest) Descriptor
deprecated
func (*ListLoanProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLoanProductsRequest.ProtoReflect.Descriptor instead.
func (*ListLoanProductsRequest) GetFilter ¶
func (x *ListLoanProductsRequest) GetFilter() *LoanProductFilter
func (*ListLoanProductsRequest) GetPageSize ¶
func (x *ListLoanProductsRequest) GetPageSize() int32
func (*ListLoanProductsRequest) GetPageToken ¶
func (x *ListLoanProductsRequest) GetPageToken() string
func (*ListLoanProductsRequest) ProtoMessage ¶
func (*ListLoanProductsRequest) ProtoMessage()
func (*ListLoanProductsRequest) ProtoReflect ¶
func (x *ListLoanProductsRequest) ProtoReflect() protoreflect.Message
func (*ListLoanProductsRequest) Reset ¶
func (x *ListLoanProductsRequest) Reset()
func (*ListLoanProductsRequest) String ¶
func (x *ListLoanProductsRequest) String() string
type ListLoanProductsResponse ¶
type ListLoanProductsResponse struct { LoanProducts []*LoanProduct `protobuf:"bytes,1,rep,name=loan_products,json=loanProducts,proto3" json:"loan_products,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListLoanProductsResponse) Descriptor
deprecated
func (*ListLoanProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLoanProductsResponse.ProtoReflect.Descriptor instead.
func (*ListLoanProductsResponse) GetLoanProducts ¶
func (x *ListLoanProductsResponse) GetLoanProducts() []*LoanProduct
func (*ListLoanProductsResponse) GetNextPageToken ¶
func (x *ListLoanProductsResponse) GetNextPageToken() string
func (*ListLoanProductsResponse) ProtoMessage ¶
func (*ListLoanProductsResponse) ProtoMessage()
func (*ListLoanProductsResponse) ProtoReflect ¶
func (x *ListLoanProductsResponse) ProtoReflect() protoreflect.Message
func (*ListLoanProductsResponse) Reset ¶
func (x *ListLoanProductsResponse) Reset()
func (*ListLoanProductsResponse) String ¶
func (x *ListLoanProductsResponse) String() string
type ListLoansRequest ¶
type ListLoansRequest struct { Filter *LoanFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListLoansRequest) Descriptor
deprecated
func (*ListLoansRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLoansRequest.ProtoReflect.Descriptor instead.
func (*ListLoansRequest) GetFilter ¶
func (x *ListLoansRequest) GetFilter() *LoanFilter
func (*ListLoansRequest) GetPageSize ¶
func (x *ListLoansRequest) GetPageSize() int32
func (*ListLoansRequest) GetPageToken ¶
func (x *ListLoansRequest) GetPageToken() string
func (*ListLoansRequest) ProtoMessage ¶
func (*ListLoansRequest) ProtoMessage()
func (*ListLoansRequest) ProtoReflect ¶
func (x *ListLoansRequest) ProtoReflect() protoreflect.Message
func (*ListLoansRequest) Reset ¶
func (x *ListLoansRequest) Reset()
func (*ListLoansRequest) String ¶
func (x *ListLoansRequest) String() string
type ListLoansResponse ¶
type ListLoansResponse struct { Loans []*Loan `protobuf:"bytes,1,rep,name=loans,proto3" json:"loans,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListLoansResponse) Descriptor
deprecated
func (*ListLoansResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLoansResponse.ProtoReflect.Descriptor instead.
func (*ListLoansResponse) GetLoans ¶
func (x *ListLoansResponse) GetLoans() []*Loan
func (*ListLoansResponse) GetNextPageToken ¶
func (x *ListLoansResponse) GetNextPageToken() string
func (*ListLoansResponse) ProtoMessage ¶
func (*ListLoansResponse) ProtoMessage()
func (*ListLoansResponse) ProtoReflect ¶
func (x *ListLoansResponse) ProtoReflect() protoreflect.Message
func (*ListLoansResponse) Reset ¶
func (x *ListLoansResponse) Reset()
func (*ListLoansResponse) String ¶
func (x *ListLoansResponse) String() string
type Loan ¶
type Loan struct { LoanId string `protobuf:"bytes,1,opt,name=loan_id,json=loanId,proto3" json:"loan_id,omitempty"` ChamaId string `protobuf:"bytes,2,opt,name=chama_id,json=chamaId,proto3" json:"chama_id,omitempty"` ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` MemberId string `protobuf:"bytes,4,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` LoaneeNames string `protobuf:"bytes,5,opt,name=loanee_names,json=loaneeNames,proto3" json:"loanee_names,omitempty"` LoaneePhone string `protobuf:"bytes,6,opt,name=loanee_phone,json=loaneePhone,proto3" json:"loanee_phone,omitempty"` LoaneeEmail string `protobuf:"bytes,7,opt,name=loanee_email,json=loaneeEmail,proto3" json:"loanee_email,omitempty"` NationalId string `protobuf:"bytes,8,opt,name=national_id,json=nationalId,proto3" json:"national_id,omitempty"` Approved bool `protobuf:"varint,9,opt,name=approved,proto3" json:"approved,omitempty"` Status LoanStatus `protobuf:"varint,17,opt,name=status,proto3,enum=gidyon.loan.LoanStatus" json:"status,omitempty"` DurationDays int32 `protobuf:"varint,10,opt,name=duration_days,json=durationDays,proto3" json:"duration_days,omitempty"` InterestRate float32 `protobuf:"fixed32,11,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` LoanAmount float64 `protobuf:"fixed64,12,opt,name=loan_amount,json=loanAmount,proto3" json:"loan_amount,omitempty"` SettledAmount float64 `protobuf:"fixed64,13,opt,name=settled_amount,json=settledAmount,proto3" json:"settled_amount,omitempty"` PenaltyAmount float64 `protobuf:"fixed64,14,opt,name=penalty_amount,json=penaltyAmount,proto3" json:"penalty_amount,omitempty"` UpdatedDate string `protobuf:"bytes,15,opt,name=updated_date,json=updatedDate,proto3" json:"updated_date,omitempty"` BorrowedDate string `protobuf:"bytes,16,opt,name=borrowed_date,json=borrowedDate,proto3" json:"borrowed_date,omitempty"` // contains filtered or unexported fields }
func (*Loan) Descriptor
deprecated
func (*Loan) GetApproved ¶
func (*Loan) GetBorrowedDate ¶
func (*Loan) GetChamaId ¶
func (*Loan) GetDurationDays ¶
func (*Loan) GetInterestRate ¶
func (*Loan) GetLoanAmount ¶
func (*Loan) GetLoaneeEmail ¶
func (*Loan) GetLoaneeNames ¶
func (*Loan) GetLoaneePhone ¶
func (*Loan) GetMemberId ¶
func (*Loan) GetNationalId ¶
func (*Loan) GetPenaltyAmount ¶
func (*Loan) GetProductId ¶
func (*Loan) GetSettledAmount ¶
func (*Loan) GetStatus ¶
func (x *Loan) GetStatus() LoanStatus
func (*Loan) GetUpdatedDate ¶
func (*Loan) ProtoMessage ¶
func (*Loan) ProtoMessage()
func (*Loan) ProtoReflect ¶
func (x *Loan) ProtoReflect() protoreflect.Message
type LoanAPIClient ¶
type LoanAPIClient interface { CreateLoan(ctx context.Context, in *CreateLoanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateLoan(ctx context.Context, in *UpdateLoanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListLoans(ctx context.Context, in *ListLoansRequest, opts ...grpc.CallOption) (*ListLoansResponse, error) GetLoan(ctx context.Context, in *GetLoanRequest, opts ...grpc.CallOption) (*Loan, error) ApproveLoan(ctx context.Context, in *ApproveLoanRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
LoanAPIClient is the client API for LoanAPI 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 NewLoanAPIClient ¶
func NewLoanAPIClient(cc grpc.ClientConnInterface) LoanAPIClient
type LoanAPIServer ¶
type LoanAPIServer interface { CreateLoan(context.Context, *CreateLoanRequest) (*emptypb.Empty, error) UpdateLoan(context.Context, *UpdateLoanRequest) (*emptypb.Empty, error) ListLoans(context.Context, *ListLoansRequest) (*ListLoansResponse, error) GetLoan(context.Context, *GetLoanRequest) (*Loan, error) ApproveLoan(context.Context, *ApproveLoanRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
LoanAPIServer is the server API for LoanAPI service. All implementations must embed UnimplementedLoanAPIServer for forward compatibility
type LoanFilter ¶
type LoanFilter struct { ChamaIds []string `protobuf:"bytes,1,rep,name=chama_ids,json=chamaIds,proto3" json:"chama_ids,omitempty"` ProductIds []string `protobuf:"bytes,2,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` // contains filtered or unexported fields }
func (*LoanFilter) Descriptor
deprecated
func (*LoanFilter) Descriptor() ([]byte, []int)
Deprecated: Use LoanFilter.ProtoReflect.Descriptor instead.
func (*LoanFilter) GetChamaIds ¶
func (x *LoanFilter) GetChamaIds() []string
func (*LoanFilter) GetProductIds ¶
func (x *LoanFilter) GetProductIds() []string
func (*LoanFilter) ProtoMessage ¶
func (*LoanFilter) ProtoMessage()
func (*LoanFilter) ProtoReflect ¶
func (x *LoanFilter) ProtoReflect() protoreflect.Message
func (*LoanFilter) Reset ¶
func (x *LoanFilter) Reset()
func (*LoanFilter) String ¶
func (x *LoanFilter) String() string
type LoanProduct ¶
type LoanProduct struct { ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ChamaId string `protobuf:"bytes,2,opt,name=chama_id,json=chamaId,proto3" json:"chama_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` LoanDurationDays int32 `protobuf:"varint,5,opt,name=loan_duration_days,json=loanDurationDays,proto3" json:"loan_duration_days,omitempty"` InterestRate float32 `protobuf:"fixed32,6,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"` LoanMinimumAmount float64 `protobuf:"fixed64,7,opt,name=loan_minimum_amount,json=loanMinimumAmount,proto3" json:"loan_minimum_amount,omitempty"` LoanMaximumAmount float64 `protobuf:"fixed64,8,opt,name=loan_maximum_amount,json=loanMaximumAmount,proto3" json:"loan_maximum_amount,omitempty"` LoanAccountBalance float64 `protobuf:"fixed64,9,opt,name=loan_account_balance,json=loanAccountBalance,proto3" json:"loan_account_balance,omitempty"` LoanInterestBalance float64 `protobuf:"fixed64,10,opt,name=loan_interest_balance,json=loanInterestBalance,proto3" json:"loan_interest_balance,omitempty"` LoanSettledBalance float64 `protobuf:"fixed64,11,opt,name=loan_settled_balance,json=loanSettledBalance,proto3" json:"loan_settled_balance,omitempty"` SettledLoans int32 `protobuf:"varint,12,opt,name=settled_loans,json=settledLoans,proto3" json:"settled_loans,omitempty"` ActiveLoans int32 `protobuf:"varint,13,opt,name=active_loans,json=activeLoans,proto3" json:"active_loans,omitempty"` TotalLoans int32 `protobuf:"varint,14,opt,name=total_loans,json=totalLoans,proto3" json:"total_loans,omitempty"` UpdatedDate string `protobuf:"bytes,15,opt,name=updated_date,json=updatedDate,proto3" json:"updated_date,omitempty"` CreatedDate string `protobuf:"bytes,16,opt,name=created_date,json=createdDate,proto3" json:"created_date,omitempty"` // contains filtered or unexported fields }
func (*LoanProduct) Descriptor
deprecated
func (*LoanProduct) Descriptor() ([]byte, []int)
Deprecated: Use LoanProduct.ProtoReflect.Descriptor instead.
func (*LoanProduct) GetActiveLoans ¶
func (x *LoanProduct) GetActiveLoans() int32
func (*LoanProduct) GetChamaId ¶
func (x *LoanProduct) GetChamaId() string
func (*LoanProduct) GetCreatedDate ¶
func (x *LoanProduct) GetCreatedDate() string
func (*LoanProduct) GetDescription ¶
func (x *LoanProduct) GetDescription() string
func (*LoanProduct) GetInterestRate ¶
func (x *LoanProduct) GetInterestRate() float32
func (*LoanProduct) GetLoanAccountBalance ¶
func (x *LoanProduct) GetLoanAccountBalance() float64
func (*LoanProduct) GetLoanDurationDays ¶
func (x *LoanProduct) GetLoanDurationDays() int32
func (*LoanProduct) GetLoanInterestBalance ¶
func (x *LoanProduct) GetLoanInterestBalance() float64
func (*LoanProduct) GetLoanMaximumAmount ¶
func (x *LoanProduct) GetLoanMaximumAmount() float64
func (*LoanProduct) GetLoanMinimumAmount ¶
func (x *LoanProduct) GetLoanMinimumAmount() float64
func (*LoanProduct) GetLoanSettledBalance ¶
func (x *LoanProduct) GetLoanSettledBalance() float64
func (*LoanProduct) GetName ¶
func (x *LoanProduct) GetName() string
func (*LoanProduct) GetProductId ¶
func (x *LoanProduct) GetProductId() string
func (*LoanProduct) GetSettledLoans ¶
func (x *LoanProduct) GetSettledLoans() int32
func (*LoanProduct) GetTotalLoans ¶
func (x *LoanProduct) GetTotalLoans() int32
func (*LoanProduct) GetUpdatedDate ¶
func (x *LoanProduct) GetUpdatedDate() string
func (*LoanProduct) ProtoMessage ¶
func (*LoanProduct) ProtoMessage()
func (*LoanProduct) ProtoReflect ¶
func (x *LoanProduct) ProtoReflect() protoreflect.Message
func (*LoanProduct) Reset ¶
func (x *LoanProduct) Reset()
func (*LoanProduct) String ¶
func (x *LoanProduct) String() string
type LoanProductAPIClient ¶
type LoanProductAPIClient interface { CreateLoanProduct(ctx context.Context, in *CreateLoanProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateLoanProduct(ctx context.Context, in *UpdateLoanProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteLoanProduct(ctx context.Context, in *DeleteLoanProductRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListLoanProducts(ctx context.Context, in *ListLoanProductsRequest, opts ...grpc.CallOption) (*ListLoanProductsResponse, error) GetLoanProduct(ctx context.Context, in *GetLoanProductRequest, opts ...grpc.CallOption) (*LoanProduct, error) }
LoanProductAPIClient is the client API for LoanProductAPI 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 NewLoanProductAPIClient ¶
func NewLoanProductAPIClient(cc grpc.ClientConnInterface) LoanProductAPIClient
type LoanProductAPIServer ¶
type LoanProductAPIServer interface { CreateLoanProduct(context.Context, *CreateLoanProductRequest) (*emptypb.Empty, error) UpdateLoanProduct(context.Context, *UpdateLoanProductRequest) (*emptypb.Empty, error) DeleteLoanProduct(context.Context, *DeleteLoanProductRequest) (*emptypb.Empty, error) ListLoanProducts(context.Context, *ListLoanProductsRequest) (*ListLoanProductsResponse, error) GetLoanProduct(context.Context, *GetLoanProductRequest) (*LoanProduct, error) // contains filtered or unexported methods }
LoanProductAPIServer is the server API for LoanProductAPI service. All implementations must embed UnimplementedLoanProductAPIServer for forward compatibility
type LoanProductFilter ¶
type LoanProductFilter struct { ChamaIds []string `protobuf:"bytes,1,rep,name=chama_ids,json=chamaIds,proto3" json:"chama_ids,omitempty"` // contains filtered or unexported fields }
func (*LoanProductFilter) Descriptor
deprecated
func (*LoanProductFilter) Descriptor() ([]byte, []int)
Deprecated: Use LoanProductFilter.ProtoReflect.Descriptor instead.
func (*LoanProductFilter) GetChamaIds ¶
func (x *LoanProductFilter) GetChamaIds() []string
func (*LoanProductFilter) ProtoMessage ¶
func (*LoanProductFilter) ProtoMessage()
func (*LoanProductFilter) ProtoReflect ¶
func (x *LoanProductFilter) ProtoReflect() protoreflect.Message
func (*LoanProductFilter) Reset ¶
func (x *LoanProductFilter) Reset()
func (*LoanProductFilter) String ¶
func (x *LoanProductFilter) String() string
type LoanStatus ¶
type LoanStatus int32
const ( LoanStatus_WAITING_APPROVAL LoanStatus = 0 LoanStatus_APPROVED LoanStatus = 1 LoanStatus_FUNDS_WITHDRAWN_ACCOUNT LoanStatus = 2 LoanStatus_WAITING_FUNDS_TRANSFER LoanStatus = 3 LoanStatus_FUNDS_TRANSFERED LoanStatus = 4 )
func (LoanStatus) Descriptor ¶
func (LoanStatus) Descriptor() protoreflect.EnumDescriptor
func (LoanStatus) Enum ¶
func (x LoanStatus) Enum() *LoanStatus
func (LoanStatus) EnumDescriptor
deprecated
func (LoanStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoanStatus.Descriptor instead.
func (LoanStatus) Number ¶
func (x LoanStatus) Number() protoreflect.EnumNumber
func (LoanStatus) String ¶
func (x LoanStatus) String() string
func (LoanStatus) Type ¶
func (LoanStatus) Type() protoreflect.EnumType
type UnimplementedLoanAPIServer ¶
type UnimplementedLoanAPIServer struct { }
UnimplementedLoanAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedLoanAPIServer) ApproveLoan ¶
func (UnimplementedLoanAPIServer) ApproveLoan(context.Context, *ApproveLoanRequest) (*emptypb.Empty, error)
func (UnimplementedLoanAPIServer) CreateLoan ¶
func (UnimplementedLoanAPIServer) CreateLoan(context.Context, *CreateLoanRequest) (*emptypb.Empty, error)
func (UnimplementedLoanAPIServer) GetLoan ¶
func (UnimplementedLoanAPIServer) GetLoan(context.Context, *GetLoanRequest) (*Loan, error)
func (UnimplementedLoanAPIServer) ListLoans ¶
func (UnimplementedLoanAPIServer) ListLoans(context.Context, *ListLoansRequest) (*ListLoansResponse, error)
func (UnimplementedLoanAPIServer) UpdateLoan ¶
func (UnimplementedLoanAPIServer) UpdateLoan(context.Context, *UpdateLoanRequest) (*emptypb.Empty, error)
type UnimplementedLoanProductAPIServer ¶
type UnimplementedLoanProductAPIServer struct { }
UnimplementedLoanProductAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedLoanProductAPIServer) CreateLoanProduct ¶
func (UnimplementedLoanProductAPIServer) CreateLoanProduct(context.Context, *CreateLoanProductRequest) (*emptypb.Empty, error)
func (UnimplementedLoanProductAPIServer) DeleteLoanProduct ¶
func (UnimplementedLoanProductAPIServer) DeleteLoanProduct(context.Context, *DeleteLoanProductRequest) (*emptypb.Empty, error)
func (UnimplementedLoanProductAPIServer) GetLoanProduct ¶
func (UnimplementedLoanProductAPIServer) GetLoanProduct(context.Context, *GetLoanProductRequest) (*LoanProduct, error)
func (UnimplementedLoanProductAPIServer) ListLoanProducts ¶
func (UnimplementedLoanProductAPIServer) ListLoanProducts(context.Context, *ListLoanProductsRequest) (*ListLoanProductsResponse, error)
func (UnimplementedLoanProductAPIServer) UpdateLoanProduct ¶
func (UnimplementedLoanProductAPIServer) UpdateLoanProduct(context.Context, *UpdateLoanProductRequest) (*emptypb.Empty, error)
type UnsafeLoanAPIServer ¶
type UnsafeLoanAPIServer interface {
// contains filtered or unexported methods
}
UnsafeLoanAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoanAPIServer will result in compilation errors.
type UnsafeLoanProductAPIServer ¶
type UnsafeLoanProductAPIServer interface {
// contains filtered or unexported methods
}
UnsafeLoanProductAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoanProductAPIServer will result in compilation errors.
type UpdateLoanProductRequest ¶
type UpdateLoanProductRequest struct { LoanProduct *LoanProduct `protobuf:"bytes,1,opt,name=loan_product,json=loanProduct,proto3" json:"loan_product,omitempty"` // contains filtered or unexported fields }
func (*UpdateLoanProductRequest) Descriptor
deprecated
func (*UpdateLoanProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLoanProductRequest.ProtoReflect.Descriptor instead.
func (*UpdateLoanProductRequest) GetLoanProduct ¶
func (x *UpdateLoanProductRequest) GetLoanProduct() *LoanProduct
func (*UpdateLoanProductRequest) ProtoMessage ¶
func (*UpdateLoanProductRequest) ProtoMessage()
func (*UpdateLoanProductRequest) ProtoReflect ¶
func (x *UpdateLoanProductRequest) ProtoReflect() protoreflect.Message
func (*UpdateLoanProductRequest) Reset ¶
func (x *UpdateLoanProductRequest) Reset()
func (*UpdateLoanProductRequest) String ¶
func (x *UpdateLoanProductRequest) String() string
type UpdateLoanRequest ¶
type UpdateLoanRequest struct { Loan *Loan `protobuf:"bytes,1,opt,name=loan,proto3" json:"loan,omitempty"` // contains filtered or unexported fields }
func (*UpdateLoanRequest) Descriptor
deprecated
func (*UpdateLoanRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLoanRequest.ProtoReflect.Descriptor instead.
func (*UpdateLoanRequest) GetLoan ¶
func (x *UpdateLoanRequest) GetLoan() *Loan
func (*UpdateLoanRequest) ProtoMessage ¶
func (*UpdateLoanRequest) ProtoMessage()
func (*UpdateLoanRequest) ProtoReflect ¶
func (x *UpdateLoanRequest) ProtoReflect() protoreflect.Message
func (*UpdateLoanRequest) Reset ¶
func (x *UpdateLoanRequest) Reset()
func (*UpdateLoanRequest) String ¶
func (x *UpdateLoanRequest) String() string