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 CreateHoldingPayload struct + Asset_category types.AssetCategory + Expense_ratio_pct float32 + Interest_rate_pct float32 + Is_deprecated bool + Maturation_date string + Name string + Ticker string + func (p CreateHoldingPayload) Validate() error + type DeleteHoldingParams struct + Id int + func (p DeleteHoldingParams) Validate() error + type GetHoldingByIdParams struct + Id int + func (p GetHoldingByIdParams) Validate() error + type GetHoldingsQuery struct + Asset_category types.AssetCategory + Has_maturation_remaining string + Ids []int + Is_deprecated string + Ticker string + func (q GetHoldingsQuery) Validate() error + type HoldingHandlerImpl struct + func NewHoldingHandler(store types.HoldingStore, logger *slog.Logger) *HoldingHandlerImpl + func (h *HoldingHandlerImpl) CreateHolding(c fiber.Ctx) error + func (h *HoldingHandlerImpl) DeleteHolding(c fiber.Ctx) error + func (h *HoldingHandlerImpl) GetHoldingById(c fiber.Ctx) error + func (h *HoldingHandlerImpl) GetHoldings(c fiber.Ctx) error + func (h *HoldingHandlerImpl) UpdateHolding(c fiber.Ctx) error + type PostgresHoldingStore struct + func NewPostgresHoldingStore(db *pgxpool.Pool, logger *slog.Logger) *PostgresHoldingStore + func (s *PostgresHoldingStore) CreateHolding(ctx context.Context, h *types.Holding) (types.Holding, error) + func (s *PostgresHoldingStore) DeleteHolding(ctx context.Context, userId, holdingId int) (types.Holding, error) + func (s *PostgresHoldingStore) GetHoldingById(ctx context.Context, userId, holdingId int) (types.Holding, error) + func (s *PostgresHoldingStore) GetHoldingByName(ctx context.Context, name string, userId int) (types.Holding, error) + func (s *PostgresHoldingStore) GetHoldingByTicker(ctx context.Context, ticker string, userId int) (types.Holding, error) + func (s *PostgresHoldingStore) GetHoldings(ctx context.Context, userId int, options *types.GetHoldingsStoreOptions) ([]types.Holding, types.PaginationMetadata, error) + func (s *PostgresHoldingStore) UpdateHolding(ctx context.Context, h *types.Holding) (types.Holding, error) + type UpdateHoldingParams struct + Id int + func (p UpdateHoldingParams) Validate() error + type UpdateHoldingPayload struct + Asset_category types.AssetCategory + Expense_ratio_pct float32 + Interest_rate_pct float32 + Is_deprecated bool + Maturation_date string + Name string + Ticker string + func (p UpdateHoldingPayload) Validate() error