Documentation ¶
Index ¶
- Variables
- type WebClient
- func (wc *WebClient) CallResult(message string)
- func (wc *WebClient) DarkModeEnabled(callbackID string)
- func (wc *WebClient) NotifyEvent(message string)
- func (wc *WebClient) OpenDialog(dialogOptions *options.OpenDialog, callbackID string)
- func (wc *WebClient) Quit()
- func (wc *WebClient) Run(w *WebServer)
- func (wc *WebClient) SaveDialog(dialogOptions *options.SaveDialog, callbackID string)
- func (wc *WebClient) SendMessage(message string)
- func (wc *WebClient) UpdateContextMenus(contextMenus *menu.ContextMenus)
- 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) 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) 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) NotifyEvent ¶
NotifyEvent sends the event
func (*WebClient) OpenDialog ¶
func (wc *WebClient) OpenDialog(dialogOptions *options.OpenDialog, callbackID string)
func (*WebClient) SaveDialog ¶
func (wc *WebClient) SaveDialog(dialogOptions *options.SaveDialog, 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) UpdateContextMenus ¶
func (wc *WebClient) UpdateContextMenus(contextMenus *menu.ContextMenus)
func (*WebClient) UpdateMenu ¶
func (*WebClient) UpdateTray ¶
func (*WebClient) UpdateTrayIcon ¶
func (*WebClient) UpdateTrayLabel ¶
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) 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