http connector first impl

This commit is contained in:
Ilia Denisov
2026-03-12 23:45:06 +02:00
committed by GitHub
parent f985370089
commit 9adadc3bbf
13 changed files with 962 additions and 41 deletions
+4 -6
View File
@@ -6,6 +6,9 @@ import (
)
type Client interface {
// Version returns semantic version of the Client
Version() string
// Run initializes necessary UI layout an settings, and activates client's main window.
// This is a blocking operation until client's main window is closed.
Run() error
@@ -24,7 +27,7 @@ func (i GameID) String() string {
}
type State struct {
// TODO: store user login key
// TODO: store user's login key
GameState []GameState `json:"gameState"`
ActiveGameID GameID `json:"activeGameId"`
}
@@ -40,8 +43,3 @@ type GameData struct {
Report report.Report `json:"report"`
Order *order.Order `json:"order,omitempty"`
}
type Settings struct {
// TODO: use fyne.Storage for initializing and storing data
StoragePath string
}