ipc

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager

func NewManager() interfaces.IPCManager

NewManager creates a new IPC Manager

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL