gcf_upload

package module
v0.0.0-...-e575cc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gcf_upload google cloud function is triggered by HTTP request and submits HTTP POST request body to google cloud storage bucket for further processing.

Index

Constants

View Source
const SuccessMsg = "Request submitted successfully. You will be notified with calculations and analytics shortly."

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInterestRequest

type CreateInterestRequest struct {
	NewBanks []*NewBank `json:"new_banks" validate:"required,dive"` //nolint:tagliatelle
}

type NewBank

type NewBank struct {
	Name        string        `json:"name" validate:"required"`
	NewDeposits []*NewDeposit `json:"new_deposits" validate:"required,dive"` //nolint:tagliatelle
}

type NewDeposit

type NewDeposit struct {
	Account     string  `json:"account,omitempty"`
	AccountType string  `json:"account_type" validate:"required"` //nolint:tagliatelle
	Apy         float64 `json:"apy" validate:"gte=0"`
	Years       float64 `json:"years" validate:"required"`
	Amount      float64 `json:"amount" validate:"gte=0"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL