process

package
v0.0.0-...-8c33e52 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	// contains filtered or unexported fields
}

func NewProcess

func NewProcess(
	id int,
	ports []string,
	clock clock.LogicalClock,
) *Process

func (*Process) ExternalEvent

func (p *Process) ExternalEvent(clockStr string)

func (*Process) InternalEvent

func (p *Process) InternalEvent()

func (*Process) InterpretCommand

func (p *Process) InterpretCommand(cmdString string)

func (*Process) InterpretMessage

func (p *Process) InterpretMessage(msg string)

func (*Process) Serve

func (p *Process) Serve(ch chan string)

type State

type State string
const (
	Released State = "released"
	Wanted   State = "wanted"
	Held     State = "held"

	ConsumeCmd = "x"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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