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 BenchmarkHandlerImpl struct + func NewBenchmarkHandler(userStore types.UserStore, benchmarkStore types.BenchmarkStore, ...) *BenchmarkHandlerImpl + func (h *BenchmarkHandlerImpl) CreateBenchmark(c fiber.Ctx) error + func (h *BenchmarkHandlerImpl) DeleteBenchmark(c fiber.Ctx) error + func (h *BenchmarkHandlerImpl) GetBenchmarkById(c fiber.Ctx) error + func (h *BenchmarkHandlerImpl) GetBenchmarks(c fiber.Ctx) error + func (h *BenchmarkHandlerImpl) UpdateBenchmark(c fiber.Ctx) error + type CreateBenchmarkPayload struct + Asset_allocation []types.AssetAllocationPct + Description string + Drawdown_yrs int + Is_deprecated bool + Name string + Real_return_pct float32 + Std_dev_pct float32 + func (p CreateBenchmarkPayload) Validate() error + type DeleteBenchmarkById struct + Id int + func (p DeleteBenchmarkById) Validate() error + type GetBenchmarkByIdParams struct + Id int + func (p GetBenchmarkByIdParams) Validate() error + type GetBenchmarksQuery struct + Ids []int + Is_deprecated string + Name string + func (q GetBenchmarksQuery) Validate() error + type PostgresBenchmarkStore struct + func NewPostgresBenchmarkStore(db *pgxpool.Pool, logger *slog.Logger) *PostgresBenchmarkStore + func (s *PostgresBenchmarkStore) CreateBenchmark(ctx context.Context, b *types.Benchmark) (types.Benchmark, error) + func (s *PostgresBenchmarkStore) DeleteBenchmark(ctx context.Context, userId, benchmarkId int) (types.Benchmark, error) + func (s *PostgresBenchmarkStore) GetBenchmarkById(ctx context.Context, userId, benchmarkId int) (types.Benchmark, error) + func (s *PostgresBenchmarkStore) GetBenchmarkByName(ctx context.Context, name string, userId int) (types.Benchmark, error) + func (s *PostgresBenchmarkStore) GetBenchmarks(ctx context.Context, userId int, options *types.GetBenchmarksStoreOptions) ([]types.Benchmark, types.PaginationMetadata, error) + func (s *PostgresBenchmarkStore) UpdateBenchmark(ctx context.Context, b *types.Benchmark) (types.Benchmark, error) + type UpdateBenchmarkById struct + Id int + func (p UpdateBenchmarkById) Validate() error + type UpdateBenchmarkPayload struct + Asset_allocation []types.AssetAllocationPct + Description string + Drawdown_yrs int + Is_deprecated bool + Name string + Real_return_pct float32 + Std_dev_pct float32 + func (p UpdateBenchmarkPayload) Validate() error