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
+8 -1
View File
@@ -9,6 +9,7 @@ import (
"galaxy/connector"
mc "galaxy/model/client"
"galaxy/model/report"
"galaxy/storage"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
@@ -17,7 +18,10 @@ import (
"fyne.io/fyne/v2/widget"
)
const version = "1.0.0"
type client struct {
s storage.UIStorage
conn connector.UIConnector
app fyne.App
window fyne.Window
@@ -66,8 +70,9 @@ type client struct {
hits []world.Hit
}
func NewClient(ctx context.Context, conn connector.UIConnector, app fyne.App, settings mc.Settings) (mc.Client, error) {
func NewClient(ctx context.Context, s storage.UIStorage, conn connector.UIConnector, app fyne.App) (mc.Client, error) {
e := &client{
s: s,
conn: conn,
app: app,
window: app.NewWindow("Galaxy Plus"),
@@ -206,3 +211,5 @@ func (e *client) Shutdown() {
}
func (e *client) OnConnection(bool) {}
func (e *client) Version() string { return version }