Documentation
¶
Index ¶
- Variables
- func AdminErrorPage(c buffalo.Context, currentUser *models.User) error
- func AdminServerInfo(c buffalo.Context, currentUser *models.User) error
- func AdminTestEmail(c buffalo.Context, currentUser *models.User) error
- func AdminTestPushNotification(c buffalo.Context, currentUser *models.User) error
- func AdminUsers(c buffalo.Context, currentUser *models.User) error
- func AllowedMonth(month int) bool
- func AllowedNetWorthYear(year int) bool
- func AllowedYear(year int) bool
- func AnnualBudgetItemsCreate(c buffalo.Context, currentUser *models.User) error
- func AnnualBudgetItemsDelete(c buffalo.Context, currentUser *models.User) error
- func AnnualBudgetItemsUpdate(c buffalo.Context, currentUser *models.User) error
- func AnnualBudgetsIndex(c buffalo.Context, currentUser *models.User) error
- func App() *buffalo.App
- func AssetsLiabilitiesCreate(c buffalo.Context, currentUser *models.User) error
- func AssetsLiabilitiesDelete(c buffalo.Context, currentUser *models.User) error
- func AssetsLiabilitiesUpdate(c buffalo.Context, currentUser *models.User) error
- func BindParams(c buffalo.Context, params interface{}) error
- func BudgetCategoryImport(c buffalo.Context, currentUser *models.User) error
- func BudgetItemExpensesCreate(c buffalo.Context, currentUser *models.User) error
- func BudgetItemExpensesDelete(c buffalo.Context, currentUser *models.User) error
- func BudgetItemExpensesUpdate(c buffalo.Context, currentUser *models.User) error
- func BudgetItemsCreate(c buffalo.Context, currentUser *models.User) error
- func BudgetItemsDelete(c buffalo.Context, currentUser *models.User) error
- func BudgetItemsUpdate(c buffalo.Context, currentUser *models.User) error
- func BudgetsIndex(c buffalo.Context, currentUser *models.User) error
- func BudgetsUpdate(c buffalo.Context, currentUser *models.User) error
- func CorsPreware() *cors.Cors
- func DeleteAuthenticationCookie(res http.ResponseWriter)
- func ErrorNotification(err error, c buffalo.Context)
- func GetCurrentUser(AuthenticationKey, AuthenticationToken string) *models.User
- func GetCurrentUserFromContext(c buffalo.Context) *models.User
- func Graphql(c buffalo.Context) error
- func MonthlyStatisticsShow(c buffalo.Context, currentUser *models.User) error
- func NetWorthItemsCreate(c buffalo.Context, currentUser *models.User) error
- func NetWorthItemsDelete(c buffalo.Context, currentUser *models.User) error
- func NetWorthItemsUpdate(c buffalo.Context, currentUser *models.User) error
- func NetWorthsImport(c buffalo.Context, currentUser *models.User) error
- func NetWorthsIndex(c buffalo.Context, currentUser *models.User) error
- func PasswordResetRequest(c buffalo.Context) error
- func PastExpenses(c buffalo.Context, currentUser *models.User) error
- func RandomBytes(n int) []byte
- func RandomHex(s int) string
- func RegisterUser(c buffalo.Context) error
- func ResetPassword(c buffalo.Context) error
- func SessionsDelete(c buffalo.Context, currentUser *models.User) error
- func SessionsIndex(c buffalo.Context, currentUser *models.User) error
- func SetAuthenticationCookie(res http.ResponseWriter, value uuid.UUID)
- func SignIn(c buffalo.Context) error
- func SignOut(c buffalo.Context, currentUser *models.User) error
- func UsersChangePassword(c buffalo.Context, currentUser *models.User) error
- func UsersUpdate(c buffalo.Context, currentUser *models.User) error
- func UsersUpdatePushNotificationToken(c buffalo.Context, currentUser *models.User) error
- type AllSessionsResponse
- type Categories
- type Category
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var AUTH_COOKIE_KEY = envy.Get("BUDGETAL_COOKIE", "_budgetal_session")
View Source
var AUTH_HEADER_KEY = envy.Get("BUDGETAL_HEADER", "X-Budgetal-Session")
View Source
var COOKIE_DOMAIN = envy.Get("COOKIE_DOMAIN", "api.budgetal.com")
View Source
var ENV = envy.Get("GO_ENV", "development")
View Source
var StartTime = time.Now()
StartTime is the time the app booted
Functions ¶
func AllowedMonth ¶
func AllowedNetWorthYear ¶
func AllowedYear ¶
func AnnualBudgetItemsCreate ¶
func AnnualBudgetItemsDelete ¶
func AnnualBudgetItemsUpdate ¶
func AnnualBudgetsIndex ¶
func AssetsLiabilitiesCreate ¶
AssetsLiabilitiesCreate creates an AssetLiability
func AssetsLiabilitiesDelete ¶
AssetsLiabilitiesDelete deletes an AssetLiability and its items
func AssetsLiabilitiesUpdate ¶
AssetsLiabilitiesUpdate updates an AssetLiability
func BindParams ¶
func BudgetCategoryImport ¶
func CorsPreware ¶
func DeleteAuthenticationCookie ¶
func DeleteAuthenticationCookie(res http.ResponseWriter)
func ErrorNotification ¶
func GetCurrentUser ¶
GetCurrentUser find a user from the database
func GetCurrentUserFromContext ¶
GetCurrentUserFromContext returns the authenticated user from the headers
func MonthlyStatisticsShow ¶
func NetWorthItemsCreate ¶
NetWorthItemsCreate creates a Net worth item
func NetWorthItemsDelete ¶
NetWorthItemsDelete deletes a Net worth item
func NetWorthItemsUpdate ¶
NetWorthItemsUpdate updates a Net worth item
func NetWorthsImport ¶
NetWorthsImport creates and returns net worth items from a previous month for the current one
func NetWorthsIndex ¶
NetWorthsIndex returns assets and liabilties for a given year
func PasswordResetRequest ¶
func RandomBytes ¶
func RegisterUser ¶
func ResetPassword ¶
func SessionsIndex ¶
SessionsIndex default implementation.
func SetAuthenticationCookie ¶
func SetAuthenticationCookie(res http.ResponseWriter, value uuid.UUID)
func UsersChangePassword ¶
Types ¶
type AllSessionsResponse ¶
type Categories ¶
type Categories []Category
func (Categories) Len ¶
func (s Categories) Len() int
func (Categories) Less ¶
func (s Categories) Less(i, j int) bool
func (Categories) Swap ¶
func (s Categories) Swap(i, j int)
type User ¶
type User struct { ID int `json:"-" db:"id"` Email string `json:"email" db:"email"` FirstName nulls.String `json:"firstName" db:"first_name"` LastName nulls.String `json:"lastName" db:"last_name"` LastSignIn string `json:"lastSignIn" db:"last_sign_in"` IP string `json:"ip" db:"last_ip"` Total int `json:"signInCount" db:"sign_in_count"` AvatarFileName nulls.String `json:"-" db:"avatar_file_name"` AvatarUrl string `json:"avatarUrl" db:"-"` }
Source Files
¶
- admin.go
- annual_budget_items.go
- annual_budgets.go
- app.go
- assets_liabilities.go
- budget_categories.go
- budget_item_expenses.go
- budget_items.go
- budgets.go
- cors.go
- error_notification.go
- graphql.go
- helpers.go
- monthly_statistics.go
- net_worth_items.go
- net_worths.go
- password_resets.go
- past_expenses.go
- register_user.go
- render.go
- sessions.go
- sign_in.go
- sign_out.go
- users.go
Click to show internal directories.
Click to hide internal directories.