Versions in this module Expand all Collapse all v1 v1.0.1 Nov 25, 2025 v1.0.0 Mar 9, 2025 Changes in this version + type AccountHandlerImpl struct + func NewAccountHandler(store types.AccountStore, logger *slog.Logger) *AccountHandlerImpl + func (h *AccountHandlerImpl) CreateAccount(c fiber.Ctx) error + func (h *AccountHandlerImpl) DeleteAccount(c fiber.Ctx) error + func (h *AccountHandlerImpl) GetAccountById(c fiber.Ctx) error + func (h *AccountHandlerImpl) GetAccounts(c fiber.Ctx) error + func (h *AccountHandlerImpl) UpdateAccount(c fiber.Ctx) error + type CreateAccountPayload struct + Description string + Institution string + Is_deprecated bool + Name string + Tax_shelter types.TaxShelter + func (p CreateAccountPayload) Validate() error + type DeleteAccountByIdParams struct + Id int + func (p DeleteAccountByIdParams) Validate() error + type GetAccountByIdParams struct + Id int + func (p GetAccountByIdParams) Validate() error + type GetAccountsQuery struct + Ids []int + Institution string + Is_deprecated string + Tax_shelter types.TaxShelter + func (q GetAccountsQuery) Validate() error + type PostgresAccountStore struct + func NewPostgresAccountStore(postgresDb *pgxpool.Pool, logger *slog.Logger) *PostgresAccountStore + func (s *PostgresAccountStore) CreateAccount(ctx context.Context, a *types.Account) (types.Account, error) + func (s *PostgresAccountStore) DeleteAccount(ctx context.Context, userId, accountId int) (types.Account, error) + func (s *PostgresAccountStore) GetAccountById(ctx context.Context, userId int, accountId int) (types.Account, error) + func (s *PostgresAccountStore) GetAccountByName(ctx context.Context, name string, userId int) (types.Account, error) + func (s *PostgresAccountStore) GetAccounts(ctx context.Context, userId int, options *types.GetAccountsStoreOptions) ([]types.Account, types.PaginationMetadata, error) + func (s *PostgresAccountStore) UpdateAccount(ctx context.Context, account *types.Account) (types.Account, error) + type UpdateAccountByIdParams struct + Id int + func (p UpdateAccountByIdParams) Validate() error + type UpdateAccountPayload struct + Description string + Institution string + Is_deprecated bool + Name string + Tax_shelter types.TaxShelter + func (p UpdateAccountPayload) Validate() error