Documentation ¶
Overview ¶
Package gcf_interestcal google cloud function is triggered by upload to illuminating_upload_json_bucket_input by gcf_upload cloud function and starts calculating Delta for each bank account including overall for all deposits. It then also uploads the calculated Deltas with deposit details to illuminating_upload_json_bucket_output google cloud storage bucket for further processing.
Depends on gcf_upload cloud function deployed and having run successfully. See System Diagram for more details.
Index ¶
Constants ¶
View Source
const ( // Saving for saving type. Saving = "Saving" // CertDep for cd type. CertDep = "CD" // Checking gor checking type. Checking = "Checking" // BrokerCD for Brokered cd type. BrokerCD = "Brokered CD" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankResult ¶
type BankResult struct {
// contains filtered or unexported fields
}
type CreateInterestRequest ¶
type CreateInterestRequest struct {
NewBanks []*NewBank `json:"new_banks" validate:"required,dive"` //nolint:tagliatelle
}
type CreateInterestResponse ¶
type DeltaService ¶
type DeltaService struct{}
type NewBank ¶
type NewBank struct { Name string `json:"name" validate:"required"` NewDeposits []*NewDeposit `json:"new_deposits" validate:"required,dive"` //nolint:tagliatelle }
type NewDeposit ¶
type StorageObjectData ¶
type StorageObjectData struct { Bucket string `json:"bucket,omitempty"` Name string `json:"name,omitempty"` Metageneration int64 `json:"metageneration,string,omitempty"` TimeCreated time.Time `json:"timeCreated,omitempty"` Updated time.Time `json:"updated,omitempty"` }
StorageObjectData contains metadata of the Cloud Storage object.
Click to show internal directories.
Click to hide internal directories.