utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calc_target_date

func Calc_target_date(years int, months int) string

Calculate the target date by specifying years and months from today's date Returns in the form "mm/dd/yyyy"

func Generate40xTokens

func Generate40xTokens(userId int, email string) (tok401 string, tok403 string, err error)

func GetRotatingDeprecation

func GetRotatingDeprecation(dep_idx *int) bool

GetRotatingDeprecation

func GetRotatingEmail

func GetRotatingEmail() string

func GetRotatingExpenseRatio

func GetRotatingExpenseRatio(er_idx *int) float32

func GetRotatingInstitution

func GetRotatingInstitution(inst_idx *int) string

func GetRotatingTaxShelter

func GetRotatingTaxShelter(ts_idx *int) string

func SendAuthRequest

func SendAuthRequest(t *testing.T, route string, p any, body any) *http.Response

p = incoming payload body = unmarshalled response body

func SendCreateOrUpdateRequest

func SendCreateOrUpdateRequest(t *testing.T, method string, route string, token string, p any, body any) *http.Response

func SendDeleteRequest

func SendDeleteRequest(t *testing.T, route string, token string, body any) *http.Response

func SendGetRequest

func SendGetRequest(t *testing.T, route string, token string, body any) *http.Response

Types

type MockAsset

type MockAsset struct {
	Ticker            string
	Asset_category    types.AssetCategory
	Maturation_date   string
	Interest_rate_pct float32
}

GetRotatingFixedIncome

func GetRotatingFixedIncome

func GetRotatingFixedIncome(inc_idx *int) MockAsset

func GetRotatingMutualFund

func GetRotatingMutualFund(mf_idx *int) MockAsset

Jump to

Keyboard shortcuts

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