ipc

package
v0.17.8-pre Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 6 Imported by: 1

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)

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(response *ipcResponse) error

SendResponse sends the given response back to the frontend

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