Documentation ¶
Index ¶
- type Auth
- type BankAccounts
- func (ba *BankAccounts) Create(budgetID string, name string) (*models.BankAccount, error)
- func (ba *BankAccounts) Delete(id string) error
- func (ba *BankAccounts) ExistsByID(id string) (bool, error)
- func (ba *BankAccounts) GetAll(budgetID string) ([]*models.BankAccount, error)
- func (ba *BankAccounts) GetByID(id string) (*models.BankAccount, error)
- type Budgets
- func (b *Budgets) BelongsTo(userAccountID, budgetID string) (bool, error)
- func (b *Budgets) Create(userAccountID, name string) (*models.Budget, error)
- func (b *Budgets) Delete(id string) error
- func (b *Budgets) ExistsByID(id string) (bool, error)
- func (b *Budgets) ExistsByUserIDAndName(userAccountID, name string) (bool, error)
- func (b *Budgets) GetAllByUserAccountID(userAccountID string) ([]*models.Budget, error)
- func (b *Budgets) GetByID(id string) (*models.Budget, error)
- func (b *Budgets) GetByUserIDAndName(userAccountID, name string) (*models.Budget, error)
- type IAuth
- type IBankAccounts
- type IBudgets
- type IUserAccounts
- type UserAccounts
- func (ua *UserAccounts) Create(username, password string, email *string) (*models.UserAccount, error)
- func (ua *UserAccounts) Delete(username string) error
- func (ua *UserAccounts) ExistsByUsername(username string) (bool, error)
- func (ua *UserAccounts) GetInfo(username string) (*models.UserAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { JWTIssuer string SigningMethod jwt.SigningMethod PrivateKey *rsa.PrivateKey UserAccounts repositories.IUserAccounts }
type BankAccounts ¶
type BankAccounts struct {
Repository repositories.IBankAccounts
}
func (*BankAccounts) Create ¶
func (ba *BankAccounts) Create(budgetID string, name string) (*models.BankAccount, error)
func (*BankAccounts) Delete ¶
func (ba *BankAccounts) Delete(id string) error
func (*BankAccounts) ExistsByID ¶
func (ba *BankAccounts) ExistsByID(id string) (bool, error)
func (*BankAccounts) GetAll ¶
func (ba *BankAccounts) GetAll(budgetID string) ([]*models.BankAccount, error)
func (*BankAccounts) GetByID ¶
func (ba *BankAccounts) GetByID(id string) (*models.BankAccount, error)
type Budgets ¶
type Budgets struct {
RBudgets repositories.IBudgets
}
func (*Budgets) ExistsByUserIDAndName ¶
func (*Budgets) GetAllByUserAccountID ¶
type IBankAccounts ¶
type IBudgets ¶
type IBudgets interface { BelongsTo(userAccountID, budgetID string) (bool, error) ExistsByID(id string) (bool, error) ExistsByUserIDAndName(userAccountID, name string) (bool, error) GetAllByUserAccountID(userAccountID string) ([]*models.Budget, error) GetByID(id string) (*models.Budget, error) GetByUserIDAndName(userAccountID, name string) (*models.Budget, error) Create(userAccountId, name string) (*models.Budget, error) Delete(id string) error }
type IUserAccounts ¶
type UserAccounts ¶
type UserAccounts struct {
Repository repositories.IUserAccounts
}
func (*UserAccounts) Create ¶
func (ua *UserAccounts) Create(username, password string, email *string) (*models.UserAccount, error)
func (*UserAccounts) Delete ¶
func (ua *UserAccounts) Delete(username string) error
func (*UserAccounts) ExistsByUsername ¶
func (ua *UserAccounts) ExistsByUsername(username string) (bool, error)
func (*UserAccounts) GetInfo ¶
func (ua *UserAccounts) GetInfo(username string) (*models.UserAccount, error)
Click to show internal directories.
Click to hide internal directories.