controllers

package
v0.0.0-...-975d13b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SessionExpiry = 3

Variables

This section is empty.

Functions

func CloseActiveSessions

func CloseActiveSessions()

run via signal.ContextNotify from main

func CreateAccount

func CreateAccount(c echo.Context) error

func CreateCashFlow

func CreateCashFlow(c echo.Context) error

func CreateDefaultSession

func CreateDefaultSession() *model.Session

func CreateImportedCashFlows

func CreateImportedCashFlows(c echo.Context) error

func CreatePayee

func CreatePayee(c echo.Context) error

func CreateScheduledCashFlow

func CreateScheduledCashFlow(c echo.Context) error

func CreateSecurity

func CreateSecurity(c echo.Context) error

func CreateSession

func CreateSession(c echo.Context) error

func CreateSplitCashFlow

func CreateSplitCashFlow(c echo.Context) error

func CreateTaxEntry

func CreateTaxEntry(c echo.Context) error

func CreateTaxes

func CreateTaxes(c echo.Context) error

func CreateTrade

func CreateTrade(c echo.Context) error

func CreateUser

func CreateUser(c echo.Context) error

func DeleteAccount

func DeleteAccount(c echo.Context) error

func DeleteCashFlow

func DeleteCashFlow(c echo.Context) error

func DeletePayee

func DeletePayee(c echo.Context) error

func DeleteSecurity

func DeleteSecurity(c echo.Context) error

func DeleteTaxEntry

func DeleteTaxEntry(c echo.Context) error

func DeleteTaxes

func DeleteTaxes(c echo.Context) error

func DeleteTrade

func DeleteTrade(c echo.Context) error

func DeleteUser

func DeleteUser(c echo.Context) error

func EditAccount

func EditAccount(c echo.Context) error

func EditCashFlow

func EditCashFlow(c echo.Context) error

func EditPayee

func EditPayee(c echo.Context) error

func EditSecurity

func EditSecurity(c echo.Context) error

func EditTaxEntry

func EditTaxEntry(c echo.Context) error

func EditTrade

func EditTrade(c echo.Context) error

func GetAccount

func GetAccount(c echo.Context) error

func GetCompanyFinancials

func GetCompanyFinancials(c echo.Context) error

func GetPayee

func GetPayee(c echo.Context) error

func GetSecurity

func GetSecurity(c echo.Context) error

func GetTradeGain

func GetTradeGain(c echo.Context) error

func IsEnabledMultiUser

func IsEnabledMultiUser() bool

could have separate config variable for multi-user, but as this is what sessions are used to managed, just tie to if sessions are enabled.

func ListAccounts

func ListAccounts(c echo.Context) error

func ListImported

func ListImported(c echo.Context) error

func ListImportedCashFlows

func ListImportedCashFlows(c echo.Context) error

func ListPayees

func ListPayees(c echo.Context) error

func ListScheduledCashFlows

func ListScheduledCashFlows(c echo.Context) error

func ListSecurities

func ListSecurities(c echo.Context) error

func ListTaxCashFlows

func ListTaxCashFlows(c echo.Context) error

func ListTaxes

func ListTaxes(c echo.Context) error

func ListTradeGains

func ListTradeGains(c echo.Context) error

func Login

func Login(c echo.Context) error

func Logout

func Logout(c echo.Context) error

func MergePayee

func MergePayee(c echo.Context) error

func MoveSecurity

func MoveSecurity(c echo.Context) error

func NewAccount

func NewAccount(c echo.Context) error

func NewSecurity

func NewSecurity(c echo.Context) error

func NewUser

func NewUser(c echo.Context) error

func PayeeSetCategory

func PayeeSetCategory(c echo.Context) error

func PutCashFlow

func PutCashFlow(c echo.Context) error

func RecalculateTaxes

func RecalculateTaxes(c echo.Context) error

func StartSessionManager

func StartSessionManager() *scs.SessionManager

func UpdateAccount

func UpdateAccount(c echo.Context) error

func UpdateCashFlow

func UpdateCashFlow(c echo.Context) error

func UpdatePayee

func UpdatePayee(c echo.Context) error

func UpdateSecurity

func UpdateSecurity(c echo.Context) error

func UpdateTaxEntry

func UpdateTaxEntry(c echo.Context) error

func UpdateTrade

func UpdateTrade(c echo.Context) error

Types

type PutKeyValue

type PutKeyValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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