Documentation ¶
Index ¶
- func AllowedMonth(month int) bool
- func AllowedNetWorthYear(year int) bool
- func AllowedYear(year int) bool
- func AnnualBudget(params graphql.ResolveParams) (interface{}, error)
- func AssetsLiabilities(params graphql.ResolveParams) (interface{}, error)
- func Budget(params graphql.ResolveParams) (interface{}, error)
- func CurrentUser(params graphql.ResolveParams) (interface{}, error)
- func MonthlyStatistic(params graphql.ResolveParams) (interface{}, error)
- func NetWorth(params graphql.ResolveParams) (interface{}, error)
- func Sessions(params graphql.ResolveParams) (interface{}, error)
- type SerializedUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedNetWorthYear ¶
AllowedNetWorthYear validates net worth years
func AnnualBudget ¶
func AnnualBudget(params graphql.ResolveParams) (interface{}, error)
AnnualBudget resolve annual budgets
func AssetsLiabilities ¶
func AssetsLiabilities(params graphql.ResolveParams) (interface{}, error)
AssetsLiabilities resolve assets and liabilities
func Budget ¶
func Budget(params graphql.ResolveParams) (interface{}, error)
Budget resolve annual budgets
func CurrentUser ¶
func CurrentUser(params graphql.ResolveParams) (interface{}, error)
CurrentUser resolve net worth items
func MonthlyStatistic ¶
func MonthlyStatistic(params graphql.ResolveParams) (interface{}, error)
MonthlyStatistic resolve annual MonthlyStatistics
func NetWorth ¶
func NetWorth(params graphql.ResolveParams) (interface{}, error)
NetWorth resolve net worth items
func Sessions ¶
func Sessions(params graphql.ResolveParams) (interface{}, error)
Sessions resolve sessions
Types ¶
type SerializedUser ¶
type SerializedUser struct { ID int `json:"id"` Email string `json:"email"` FirstName nulls.String `json:"firstName"` LastName nulls.String `json:"lastName"` Admin bool `json:"admin"` AvatarURL string `json:"avatarUrl"` }
SerializedUser is the response for graphql
func SerializeUser ¶
func SerializeUser(user *models.User) SerializedUser
SerializeUser will convert a database user to a graphql user
Click to show internal directories.
Click to hide internal directories.