http connector first impl
This commit is contained in:
+8
-1
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user