port

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

ports are used to interact with external system processes. Basically wraps os.Exec.Cmd instance, but you get exit signals if the process exits. If the external command closes without error, the port process will exit with exitreason.Normal

Index

Constants

View Source
const (
	PortExitedReason = "port exited"
	PortClosedReason = "port closed"
)

Variables

This section is empty.

Functions

func Close

func Close(self erl.PID, port erl.PID)

func Open

func Open(self erl.PID, cmd string, args ...string) erl.PID

Types

type Port

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

func (*Port) Receive

func (p *Port) Receive(self erl.PID, inbox <-chan any) error

type PortClosed

type PortClosed struct {
	Port erl.PID
}

type ShutdownReason added in v0.5.1

type ShutdownReason string

Jump to

Keyboard shortcuts

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