2019-06-05 20:40:55 +00:00
|
|
|
package event
|
|
|
|
|
|
|
|
// IPCMessage is a wrapper for a regular eventMessage with a destination (onion|AppDest) so the other side of the bridge can route appropriately
|
|
|
|
type IPCMessage struct {
|
|
|
|
Dest string
|
|
|
|
Message Event
|
|
|
|
}
|
|
|
|
|
|
|
|
// IPCBridge is an interface to a IPC construct used to communicate IPCMessages
|
|
|
|
type IPCBridge interface {
|
2019-07-10 20:30:24 +00:00
|
|
|
Read() (*IPCMessage, bool)
|
2019-06-05 20:40:55 +00:00
|
|
|
Write(message *IPCMessage)
|
|
|
|
Shutdown()
|
|
|
|
}
|