Documentation ¶
Index ¶
- Variables
- type WebClient
- func (wc *WebClient) CallResult(message string)
- func (wc *WebClient) DarkModeEnabled(callbackID string)
- func (wc *WebClient) DeleteTrayMenuByID(id string)
- func (wc *WebClient) MessageDialog(dialogOptions runtime.MessageDialogOptions, callbackID string)
- func (wc *WebClient) NotifyEvent(message string)
- func (wc *WebClient) OpenDirectoryDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
- func (wc *WebClient) OpenFileDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
- func (wc *WebClient) OpenMultipleFilesDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
- func (wc *WebClient) Quit()
- func (wc *WebClient) Run(w *WebServer)
- func (wc *WebClient) SaveDialog(dialogOptions runtime.SaveDialogOptions, callbackID string)
- func (wc *WebClient) SendMessage(message string)
- func (wc *WebClient) SetApplicationMenu(menuJSON string)
- func (wc *WebClient) SetTrayMenu(trayMenuJSON string)
- func (wc *WebClient) UpdateContextMenu(contextMenuJSON string)
- func (wc *WebClient) UpdateMenu(menu *menu.Menu)
- func (wc *WebClient) UpdateTray(menu *menu.Menu)
- func (wc *WebClient) UpdateTrayIcon(name string)
- func (wc *WebClient) UpdateTrayLabel(label string)
- func (wc *WebClient) UpdateTrayMenu(trayMenuJSON string)
- func (wc *WebClient) UpdateTrayMenuLabel(trayMenuJSON string)
- func (wc *WebClient) WindowCenter()
- func (wc *WebClient) WindowFullscreen()
- func (wc *WebClient) WindowHide()
- func (wc *WebClient) WindowMaximise()
- func (wc *WebClient) WindowMinimise()
- func (wc *WebClient) WindowPosition(x int, y int)
- func (wc *WebClient) WindowSetColour(colour int)
- func (wc *WebClient) WindowSetMaxSize(width int, height int)
- func (wc *WebClient) WindowSetMinSize(width int, height int)
- func (wc *WebClient) WindowSetTitle(title string)
- func (wc *WebClient) WindowShow()
- func (wc *WebClient) WindowSize(width int, height int)
- func (wc *WebClient) WindowUnfullscreen()
- func (wc *WebClient) WindowUnmaximise()
- func (wc *WebClient) WindowUnminimise()
- type WebServer
Constants ¶
This section is empty.
Variables ¶
var ( // WebAssets is our single asset db instance. // It will be constructed by a dynamically generated method in this directory. WebAssets *assetdb.AssetDB = assetdb.NewAssetDB() )
Functions ¶
This section is empty.
Types ¶
type WebClient ¶
type WebClient struct {
// contains filtered or unexported fields
}
WebClient represents an individual web session
func (*WebClient) CallResult ¶
CallResult sends the result of the Go function call back to the originator in the frontend
func (*WebClient) DarkModeEnabled ¶
func (*WebClient) DeleteTrayMenuByID ¶
func (*WebClient) MessageDialog ¶
func (wc *WebClient) MessageDialog(dialogOptions runtime.MessageDialogOptions, callbackID string)
func (*WebClient) NotifyEvent ¶
NotifyEvent sends the event
func (*WebClient) OpenDirectoryDialog ¶
func (wc *WebClient) OpenDirectoryDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
func (*WebClient) OpenFileDialog ¶
func (wc *WebClient) OpenFileDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
func (*WebClient) OpenMultipleFilesDialog ¶
func (wc *WebClient) OpenMultipleFilesDialog(dialogOptions runtime.OpenDialogOptions, callbackID string)
func (*WebClient) SaveDialog ¶
func (wc *WebClient) SaveDialog(dialogOptions runtime.SaveDialogOptions, callbackID string)
func (*WebClient) SendMessage ¶
SendMessage converts the string to a []byte and passes it to the connection's Writer to send to the remote client The Writer itself prevents multiple users at the same time.
func (*WebClient) SetApplicationMenu ¶
func (*WebClient) SetTrayMenu ¶
func (*WebClient) UpdateContextMenu ¶
func (*WebClient) UpdateMenu ¶
func (*WebClient) UpdateTray ¶
func (*WebClient) UpdateTrayIcon ¶
func (*WebClient) UpdateTrayLabel ¶
func (*WebClient) UpdateTrayMenu ¶
func (*WebClient) UpdateTrayMenuLabel ¶
func (*WebClient) WindowCenter ¶
func (wc *WebClient) WindowCenter()
func (*WebClient) WindowFullscreen ¶
func (wc *WebClient) WindowFullscreen()
WindowFullscreen is a noop in the webclient
func (*WebClient) WindowHide ¶
func (wc *WebClient) WindowHide()
func (*WebClient) WindowMaximise ¶
func (wc *WebClient) WindowMaximise()
func (*WebClient) WindowMinimise ¶
func (wc *WebClient) WindowMinimise()
func (*WebClient) WindowPosition ¶
func (*WebClient) WindowSetColour ¶
WindowSetColour is a noop in the webclient
func (*WebClient) WindowSetMaxSize ¶
func (*WebClient) WindowSetMinSize ¶
func (*WebClient) WindowSetTitle ¶
WindowSetTitle is a noop in the webclient
func (*WebClient) WindowShow ¶
func (wc *WebClient) WindowShow()
func (*WebClient) WindowSize ¶
func (*WebClient) WindowUnfullscreen ¶
func (wc *WebClient) WindowUnfullscreen()
WindowUnfullscreen is a noop in the webclient
func (*WebClient) WindowUnmaximise ¶
func (wc *WebClient) WindowUnmaximise()
func (*WebClient) WindowUnminimise ¶
func (wc *WebClient) WindowUnminimise()
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
WebServer serves the application over http
func NewWebServer ¶
NewWebServer creates a new WebServer
func (*WebServer) SetBindings ¶
SetBindings provides the webserver with the mapping of bindings to provide to a client
func (*WebServer) Start ¶
func (w *WebServer) Start(dispatcher *messagedispatcher.Dispatcher, event *subsystem.Event) error
Start the webserver