Implement top shares page

This commit is contained in:
Pijus Kamandulis
2025-06-23 14:37:06 +03:00
parent 260d2ec24b
commit d801debaf6
10 changed files with 279 additions and 9 deletions
+4
View File
@@ -10,6 +10,7 @@ import (
"pool-stats/config"
"pool-stats/database"
"pool-stats/ingest"
"pool-stats/jobs"
"pool-stats/web"
)
@@ -25,6 +26,9 @@ func main() {
ingestor := ingest.NewIngestor(db, config.LogPath)
go ingestor.WatchAndIngest()
topSharesRecalcJob := jobs.NewRecalculateTopSharesJob(db)
go topSharesRecalcJob.Run()
webServer := web.NewWebServer(db, config.Port)
if err := webServer.Start(); err != nil {
log.Fatalf("Failed to start web server: %v", err)