implement options.server + add to options.App

This commit is contained in:
Travis McLane
2024-05-01 14:08:12 -05:00
parent f7b3ed4904
commit a0e05e6422
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -12,6 +12,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
"github.com/wailsapp/wails/v2/pkg/options/linux"
"github.com/wailsapp/wails/v2/pkg/options/mac"
"github.com/wailsapp/wails/v2/pkg/options/server"
"github.com/wailsapp/wails/v2/pkg/options/windows"
"github.com/wailsapp/wails/v2/pkg/menu"
@@ -95,6 +96,8 @@ type App struct {
// Debug options for debug builds. These options will be ignored in a production build.
Debug Debug
// Server options (also used by hybrid)
Server *server.Options
}
type ErrorFormatter func(error) any
+8
View File
@@ -0,0 +1,8 @@
package server
// Options are options specific to the server
type Options struct {
EnableServer bool
Host string
Port int32
}