Documentation ¶
Index ¶
- type AccountInterface
- type ApiKeyInterface
- type BudgetInterface
- type ByName
- type Interface
- type Model
- func (model *Model) AcceptInvite(invite *types.Invite, userId string) error
- func (model *Model) ConfirmResetPassword(password string, code string) (*types.User, error)
- func (model *Model) CreateAccount(account *types.Account, userId string) (err error)
- func (model *Model) CreateApiKey(key *types.ApiKey) error
- func (model *Model) CreateBudget(budget *types.Budget, userId string) error
- func (model *Model) CreateInvite(invite *types.Invite, userId string) error
- func (model *Model) CreateOrg(org *types.Org, userId string) error
- func (model *Model) CreatePrice(price *types.Price, userId string) error
- func (model *Model) CreateSession(session *types.Session) error
- func (model *Model) CreateTransaction(transaction *types.Transaction) (err error)
- func (model *Model) CreateUser(user *types.User) error
- func (model *Model) DeleteAccount(id string, userId string, orgId string) (err error)
- func (model *Model) DeleteApiKey(id string, userId string) error
- func (model *Model) DeleteBudget(orgId string, userId string) error
- func (model *Model) DeleteInvite(id string, userId string) error
- func (model *Model) DeletePrice(id string, userId string) error
- func (model *Model) DeleteSession(id string, userId string) error
- func (model *Model) DeleteTransaction(id string, userId string, orgId string) (err error)
- func (model *Model) GetAccount(orgId, accId, userId, tokenId string) (*types.Account, error)
- func (model *Model) GetAccountWithBalance(orgId, accId, userId, tokenId string, date time.Time) (*types.Account, error)
- func (model *Model) GetAccounts(orgId string, userId string, tokenId string) ([]*types.Account, error)
- func (model *Model) GetAccountsWithBalances(orgId string, userId string, tokenId string, date time.Time) ([]*types.Account, error)
- func (model *Model) GetApiKeys(userId string) ([]*types.ApiKey, error)
- func (model *Model) GetBudget(orgId string, userId string) (*types.Budget, error)
- func (model *Model) GetInvites(orgId string, userId string) ([]*types.Invite, error)
- func (model *Model) GetOrg(orgId string, userId string) (*types.Org, error)
- func (model *Model) GetOrgs(userId string) ([]*types.Org, error)
- func (model *Model) GetPricesByCurrency(orgId string, currency string, userId string) ([]*types.Price, error)
- func (model *Model) GetPricesNearestInTime(orgId string, date time.Time, userId string) ([]*types.Price, error)
- func (model *Model) GetTransactionsByAccount(orgId string, userId string, accountId string, options *types.QueryOptions) ([]*types.Transaction, error)
- func (model *Model) GetTransactionsByOrg(orgId string, userId string, options *types.QueryOptions) ([]*types.Transaction, error)
- func (model *Model) PingDatabase() error
- func (model *Model) ResetPassword(email string) error
- func (model *Model) SendPasswordResetEmail(user *types.User) error
- func (model *Model) SendVerificationEmail(user *types.User) error
- func (model *Model) UpdateAccount(account *types.Account, userId string) (err error)
- func (model *Model) UpdateApiKey(key *types.ApiKey) error
- func (model *Model) UpdateOrg(org *types.Org, userId string) error
- func (model *Model) UpdateTransaction(oldId string, transaction *types.Transaction) (err error)
- func (model *Model) UpdateUser(user *types.User) error
- func (model *Model) UserBelongsToOrg(userId string, orgId string) (bool, error)
- func (model *Model) VerifyUser(code string) error
- type OrgInterface
- type PriceInterface
- type SessionInterface
- type SystemHealthInteface
- type TransactionInterface
- type UserInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInterface ¶
type AccountInterface interface { CreateAccount(account *types.Account, userId string) error UpdateAccount(account *types.Account, userId string) error DeleteAccount(id string, userId string, orgId string) error GetAccounts(orgId string, userId string, tokenId string) ([]*types.Account, error) GetAccountsWithBalances(orgId string, userId string, tokenId string, date time.Time) ([]*types.Account, error) GetAccount(orgId, accId, userId, tokenId string) (*types.Account, error) GetAccountWithBalance(orgId, accId, userId, tokenId string, date time.Time) (*types.Account, error) }
type ApiKeyInterface ¶
type BudgetInterface ¶
type Interface ¶
type Interface interface { UserInterface OrgInterface AccountInterface TransactionInterface PriceInterface SessionInterface ApiKeyInterface SystemHealthInteface BudgetInterface }
var Instance Interface
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) AcceptInvite ¶
func (*Model) ConfirmResetPassword ¶
func (*Model) CreateAccount ¶
func (*Model) CreateBudget ¶
func (*Model) CreateInvite ¶
func (*Model) CreatePrice ¶
func (*Model) CreateTransaction ¶
func (model *Model) CreateTransaction(transaction *types.Transaction) (err error)
func (*Model) DeleteAccount ¶
func (*Model) DeleteTransaction ¶
func (*Model) GetAccount ¶
func (*Model) GetAccountWithBalance ¶
func (*Model) GetAccounts ¶
func (*Model) GetAccountsWithBalances ¶
func (*Model) GetInvites ¶
func (*Model) GetPricesByCurrency ¶
func (*Model) GetPricesNearestInTime ¶
func (*Model) GetTransactionsByAccount ¶
func (model *Model) GetTransactionsByAccount(orgId string, userId string, accountId string, options *types.QueryOptions) ([]*types.Transaction, error)
func (*Model) GetTransactionsByOrg ¶
func (model *Model) GetTransactionsByOrg(orgId string, userId string, options *types.QueryOptions) ([]*types.Transaction, error)
func (*Model) PingDatabase ¶
func (*Model) ResetPassword ¶
func (*Model) SendPasswordResetEmail ¶
func (*Model) SendVerificationEmail ¶
func (*Model) UpdateAccount ¶
func (*Model) UpdateTransaction ¶
func (model *Model) UpdateTransaction(oldId string, transaction *types.Transaction) (err error)
func (*Model) UserBelongsToOrg ¶
func (*Model) VerifyUser ¶
type OrgInterface ¶
type OrgInterface interface { CreateOrg(*types.Org, string) error UpdateOrg(*types.Org, string) error GetOrg(string, string) (*types.Org, error) GetOrgs(string) ([]*types.Org, error) CreateInvite(*types.Invite, string) error AcceptInvite(*types.Invite, string) error GetInvites(string, string) ([]*types.Invite, error) DeleteInvite(string, string) error }
type PriceInterface ¶
type SessionInterface ¶
type SystemHealthInteface ¶
type SystemHealthInteface interface {
PingDatabase() error
}
type TransactionInterface ¶
type TransactionInterface interface { CreateTransaction(*types.Transaction) error UpdateTransaction(string, *types.Transaction) error GetTransactionsByAccount(string, string, string, *types.QueryOptions) ([]*types.Transaction, error) GetTransactionsByOrg(string, string, *types.QueryOptions) ([]*types.Transaction, error) DeleteTransaction(string, string, string) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.