context passing

This commit is contained in:
Ilia Denisov
2026-03-12 19:46:59 +02:00
parent 079b9facb0
commit f985370089
5 changed files with 23 additions and 11 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package connector
import (
"context"
model "galaxy/model/client"
"galaxy/model/report"
)
@@ -25,7 +26,7 @@ type UIConnector interface {
// FetchReport asynchronously requests from backend server a [report.Report] for a given [model.GameID] and turn number.
// Passed callback func will will accept non-nil error in case of I/O or decoding errors occuried,
// otherwise callback func accepts loaded [report.Report].
FetchReport(model.GameID, uint, func(report.Report, error))
FetchReport(context.Context, model.GameID, uint, func(report.Report, error))
}
type VersionInfo struct {