PocketBase view collection benutzen. Dokumentation aktualisieren.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user