process

package
v0.0.0-...-d7762a2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExecProcess

func RegisterExecProcess(server *server.Server, id string, options map[string]interface{}) (server.Process, error)

RegisterExecProcess registers a new instance to the server

Types

type ExecProcess

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

ExecProcess run a process

func NewExecProcess

func NewExecProcess(options *ExecProcessOptions) (*ExecProcess, error)

NewExecProcess creates a new instance of ExecProcess

func (*ExecProcess) Init

func (e *ExecProcess) Init() error

Init start the process

func (*ExecProcess) Read

func (e *ExecProcess) Read(p []byte) (n int, err error)

Read pipes the data from the stdout

func (*ExecProcess) Write

func (e *ExecProcess) Write(p []byte) (n int, err error)

Write pipes the data to the stdin

type ExecProcessOptions

type ExecProcessOptions struct {
	Path string
	Args []string
}

Jump to

Keyboard shortcuts

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