Documentation ¶
Index ¶
- func NewManager() interfaces.IPCManager
- type Manager
- func (i *Manager) BindRenderer(renderer interfaces.Renderer)
- func (i *Manager) Dispatch(message string, cb interfaces.CallbackFunc)
- func (i *Manager) SendResponse(cb interfaces.CallbackFunc) func(i *ipcResponse) error
- func (i *Manager) Shutdown()
- func (i *Manager) Start(eventManager interfaces.EventManager, bindingManager interfaces.BindingManager)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the IPC subsystem
func (*Manager) BindRenderer ¶
func (i *Manager) BindRenderer(renderer interfaces.Renderer)
BindRenderer sets the renderer, returns the dispatch function
func (*Manager) Dispatch ¶
func (i *Manager) Dispatch(message string, cb interfaces.CallbackFunc)
Dispatch receives JSON encoded messages from the renderer. It processes the message to ensure that it is valid and places the processed message on the message queue
func (*Manager) SendResponse ¶
func (i *Manager) SendResponse(cb interfaces.CallbackFunc) func(i *ipcResponse) error
SendResponse sends the given response back to the frontend It sends the data back to the correct renderer by way of the provided callback function
func (*Manager) Shutdown ¶ added in v0.18.4
func (i *Manager) Shutdown()
Shutdown is called when exiting the Application
func (*Manager) Start ¶
func (i *Manager) Start(eventManager interfaces.EventManager, bindingManager interfaces.BindingManager)
Start the IPC Manager
Click to show internal directories.
Click to hide internal directories.