Documentation
¶
Overview ¶
Package interestcal provides interest calculation service for the server api
Index ¶
- Constants
- type BankResult
- type DepositCalculation
- type ServiceServer
- func (svc ServiceServer) CalculateDelta(ctx context.Context, cireq *interestcalpb.CreateInterestRequest) (*interestcalpb.CreateInterestResponse, error)
- func (svc ServiceServer) CreateInterest(ctx context.Context, cireq *interestcalpb.CreateInterestRequest) (*interestcalpb.CreateInterestResponse, error)
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
func (svc ServiceServer) CalculateDelta(ctx context.Context, cireq *interestcalpb.CreateInterestRequest) (*interestcalpb.CreateInterestResponse, error)
CalculateDelta calculations for all banks computeBanksDelta uses concurrency
func (ServiceServer) CreateInterest ¶
func (svc ServiceServer) CreateInterest(ctx context.Context, cireq *interestcalpb.CreateInterestRequest) (*interestcalpb.CreateInterestResponse, error)
Click to show internal directories.
Click to hide internal directories.