interestcal

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package interestcal provides interest calculation service for the server api

Index

Constants

View Source
const (

	// Sa for aving type
	Sa = "Saving"
	// CD for cd type
	CD = "CD"
	// Ch gor checking type
	Ch = "Checking"
	// Br for Brokered type
	Br = "Brokered CD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BankResult added in v1.5.0

type BankResult struct {
	// contains filtered or unexported fields
}

type DepositCalculation added in v1.5.20

type DepositCalculation struct {
	BankName    string  `json:"bank_name,omitempty"`
	Account     string  `json:"account,omitempty"`
	AccountType string  `json:"account_type,omitempty"`
	Apy         float64 `json:"apy,omitempty"`
	Years       float64 `json:"years,omitempty"`
	Amount      float64 `json:"amount,omitempty"`
	Delta       float64 `json:"delta,omitempty"`
}

type ServiceServer

type ServiceServer struct {
	KafkaWriter *kafka.Writer
	AccessToken string
	interestcalpb.UnimplementedInterestCalServiceServer
}

func (ServiceServer) CalculateDelta added in v1.5.20

CalculateDelta calculations for all banks computeBanksDelta uses concurrency

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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