ipc

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterfaceDispatcher string
View Source
var InterfaceWorker string

Functions

This section is empty.

Types

type DispatcherEvent

type DispatcherEvent uint

DispatcherEvent is an event emitted by the com.redhat.Yggdrasil1.Dispatcher1.Event signal.

const (
	// DispatcherEventReceivedDisconnect is emitted when the dispatcher receives
	// the "disconnect" command.
	DispatcherEventReceivedDisconnect DispatcherEvent = 1

	// DispatcherEventUnexpectedDisconnect is emitted when the transport unexpected
	// disconnects from the network.
	DispatcherEventUnexpectedDisconnect DispatcherEvent = 2

	// DispatcherEventConnectionRestored is emitted when the transport reconnects
	// to the network.
	DispatcherEventConnectionRestored DispatcherEvent = 3
)

type WorkerEvent

type WorkerEvent struct {
	Worker     string
	Name       WorkerEventName
	MessageID  string
	ResponseTo string
	Data       map[string]string
}

type WorkerEventName

type WorkerEventName uint
const (

	// WorkerEventNameBegin is emitted when the worker "accepts"
	// a dispatched message and begins "working".
	WorkerEventNameBegin WorkerEventName = 1

	// WorkerEventNameEnd is emitted when the worker finishes "working".
	WorkerEventNameEnd WorkerEventName = 2

	// WorkerEventNameWorking is emitted when the worker wishes
	// to continue to announce it is working.
	WorkerEventNameWorking WorkerEventName = 3

	// WorkerEventNameStarted is emitted when worker finished starting
	// process, and it can start process received messages.
	WorkerEventNameStarted WorkerEventName = 4

	// WorkerEventNameStopped is emitted when worker is stopped,
	// and it cannot process any message.
	WorkerEventNameStopped WorkerEventName = 5
)

func (WorkerEventName) String

func (e WorkerEventName) String() string

Jump to

Keyboard shortcuts

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