Documentation
¶
Index ¶
- Constants
- Variables
- func ErrCommonResponse(err error) string
- func IsErrBadRequest(err error) bool
- func IsErrConflict(err error) bool
- func IsErrNotFound(err error) bool
- func ParseStatusError(err error) (int, string)
- type Account
- type AccountType
- type DebtorsCreditors
- type ErrAccountAlreadyExist
- type ErrAccountNotFound
- type ErrDebtorCreditorAlreadyExist
- type ErrDebtorCreditorNotFound
- type ErrPetAdoptionNotFound
- type ErrPetNotFound
- type ErrShelterAlreadyExist
- type ErrShelterNotFound
- type ErrUserAlreadyExist
- type ErrUserNotAuthenticated
- type ErrUserNotFound
- type ErrUserPasswordMismatch
- type Event
- type Expense
- type StatusError
- type Transaction
- type TransactionType
- type TxnCategory
- type TxnSubcategory
- type User
Constants ¶
View Source
const ( ExpenseTransaction TransactionType = "Expense" IncomeTransaction TransactionType = "Income" TransferTransaction TransactionType = "Transfer" LoanSubcategoryID string = "fin-loan" LoanRecoverySubID string = "fin-recover" BorrowSubcategoryID string = "fin-borrow" BorrowReturnSubID string = "fin-return" )
Variables ¶
View Source
var TxnCategories = []TxnCategory{
{ID: "food", Name: "Food"},
{ID: "house", Name: "Housing"},
{ID: "ent", Name: "Entertainment"},
{ID: "pc", Name: "Personal Care"},
{ID: "trv", Name: "Travel"},
{ID: "fin", Name: "Financial"},
{ID: "misc", Name: "Miscellaneous"},
}
View Source
var TxnSubcategories []TxnSubcategory
Functions ¶
func ErrCommonResponse ¶ added in v1.0.1
func IsErrBadRequest ¶
func IsErrConflict ¶
func IsErrNotFound ¶
func ParseStatusError ¶
Types ¶
type AccountType ¶
type AccountType string
const ( CashAccount AccountType = "Cash" BankAccount AccountType = "Bank" )
type DebtorsCreditors ¶ added in v1.0.1
type ErrAccountAlreadyExist ¶
type ErrAccountAlreadyExist struct {
ShortName string
}
func (ErrAccountAlreadyExist) Error ¶
func (err ErrAccountAlreadyExist) Error() string
type ErrAccountNotFound ¶
type ErrAccountNotFound struct {
AccID string
}
func (ErrAccountNotFound) Error ¶
func (err ErrAccountNotFound) Error() string
type ErrDebtorCreditorAlreadyExist ¶ added in v1.0.1
func (ErrDebtorCreditorAlreadyExist) Error ¶ added in v1.0.1
func (err ErrDebtorCreditorAlreadyExist) Error() string
type ErrDebtorCreditorNotFound ¶ added in v1.0.1
func (ErrDebtorCreditorNotFound) Error ¶ added in v1.0.1
func (err ErrDebtorCreditorNotFound) Error() string
type ErrPetAdoptionNotFound ¶
type ErrPetAdoptionNotFound struct {
PetID string
}
func (ErrPetAdoptionNotFound) Error ¶
func (err ErrPetAdoptionNotFound) Error() string
type ErrPetNotFound ¶
func (ErrPetNotFound) Error ¶
func (err ErrPetNotFound) Error() string
type ErrShelterAlreadyExist ¶
func (ErrShelterAlreadyExist) Error ¶
func (err ErrShelterAlreadyExist) Error() string
type ErrShelterNotFound ¶
func (ErrShelterNotFound) Error ¶
func (err ErrShelterNotFound) Error() string
type ErrUserAlreadyExist ¶
func (ErrUserAlreadyExist) Error ¶
func (err ErrUserAlreadyExist) Error() string
type ErrUserNotAuthenticated ¶
type ErrUserNotAuthenticated struct{}
func (ErrUserNotAuthenticated) Error ¶
func (err ErrUserNotAuthenticated) Error() string
type ErrUserNotFound ¶
func (ErrUserNotFound) Error ¶
func (err ErrUserNotFound) Error() string
type ErrUserPasswordMismatch ¶
type ErrUserPasswordMismatch struct{}
func (ErrUserPasswordMismatch) Error ¶
func (ErrUserPasswordMismatch) Error() string
type StatusError ¶
func (StatusError) Error ¶
func (err StatusError) Error() string
type Transaction ¶
type TransactionType ¶
type TransactionType string
type TxnCategory ¶
type TxnSubcategory ¶
Click to show internal directories.
Click to hide internal directories.