PocketBase view collection benutzen. Dokumentation aktualisieren.

This commit is contained in:
2026-07-14 20:06:19 +02:00
parent a1504dd5e6
commit b8b4e00b92
10 changed files with 162 additions and 138 deletions

View File

@@ -14,10 +14,7 @@ import (
// Config holds the compile-time settings for the application.
type Config struct {
PBURL string
PBUser string
PBPassword string
PBCategory string
PBURL string
}
// App orchestrates the full pipeline.
@@ -31,7 +28,7 @@ type App struct {
// New creates a new App with the given configuration.
func New(cfg Config) *App {
return &App{
pocketbase: pocketbase.New(cfg.PBURL, cfg.PBUser, cfg.PBPassword, cfg.PBCategory),
pocketbase: pocketbase.New(cfg.PBURL),
scraper: royalroad.NewScraper(),
outW: os.Stdout,
errW: os.Stderr,