context passing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user