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 CreateSnapshotValueParams struct + Snap_id int + func (p CreateSnapshotValueParams) Validate() error + type CreateSnapshotValuePayload struct + Account_id int + Holding_id int + Skip_rebalance bool + Total float64 + func (p CreateSnapshotValuePayload) Validate() error + type DeleteSnapshotValueParams struct + Snap_id int + Snap_val_id int + func (p DeleteSnapshotValueParams) Validate() error + type GetSnapshotValueParams struct + Snap_id int + Snap_val_id int + func (p GetSnapshotValueParams) Validate() error + type GetSnapshotValuesParams struct + Snap_id int + func (p GetSnapshotValuesParams) Validate() error + type PostgresSnapshotValueStore struct + func NewPostgresSnapshotValueStore(db *pgxpool.Pool, logger *slog.Logger) *PostgresSnapshotValueStore + func (s *PostgresSnapshotValueStore) CreateSnapshotValue(ctx context.Context, snapVals *types.SnapshotValue) (types.SnapshotValue, error) + func (s *PostgresSnapshotValueStore) DeleteSnapshotValue(ctx context.Context, snapId, snapValId, userId int) (types.SnapshotValue, error) + func (s *PostgresSnapshotValueStore) GetSnapshotValue(ctx context.Context, snapId, snapValId, userId int) (types.SnapshotValue, error) + func (s *PostgresSnapshotValueStore) GetSnapshotValues(ctx context.Context, snapId, userId int) ([]types.SnapshotValue, error) + func (s *PostgresSnapshotValueStore) UpdateSnapshotValue(ctx context.Context, sv *types.SnapshotValue) (types.SnapshotValue, error) + type SnapshotValueHandlerImpl struct + func NewSnapshotValueHandler(accountStore types.AccountStore, holdingStore types.HoldingStore, ...) *SnapshotValueHandlerImpl + func (h *SnapshotValueHandlerImpl) CreateSnapshotValue(c fiber.Ctx) error + func (h *SnapshotValueHandlerImpl) DeleteSnapshotValue(c fiber.Ctx) error + func (h *SnapshotValueHandlerImpl) GetSnapshotValue(c fiber.Ctx) error + func (h *SnapshotValueHandlerImpl) GetSnapshotValues(c fiber.Ctx) error + func (h *SnapshotValueHandlerImpl) UpdateSnapshotValue(c fiber.Ctx) error + type UpdateSnapshotValueParams struct + Snap_id int + Snap_val_id int + func (p UpdateSnapshotValueParams) Validate() error + type UpdateSnapshotValuePayload struct + Account_id int + Holding_id int + Skip_rebalance bool + Total float64 + func (p UpdateSnapshotValuePayload) Validate() error