subprocess

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subprocess

type Subprocess struct {
	sync.Mutex
	Cmd      *exec.Cmd
	ModPort  int
	CorePort int
	Key      string
	Config   []byte
	Dir      string
	DataDir  string
	Writer   *SubprocessWriter
}

func CreateSubprocess

func CreateSubprocess(source string, jablkoPort int, jmodKey string, dataDir string, config []byte) (*Subprocess, error)

func (*Subprocess) Build

func (sub *Subprocess) Build() error

func (*Subprocess) GetCurLogBytes

func (sub *Subprocess) GetCurLogBytes() ([]byte, error)

func (*Subprocess) MarshalJSON

func (sub *Subprocess) MarshalJSON() ([]byte, error)

func (*Subprocess) Start

func (sub *Subprocess) Start() error

func (*Subprocess) Stop

func (sub *Subprocess) Stop() error

func (*Subprocess) Update

func (sub *Subprocess) Update()

type SubprocessWriter

type SubprocessWriter struct {
	sync.Mutex
	JMODName string
	// contains filtered or unexported fields
}

func CreateSubprocessWriter

func CreateSubprocessWriter(JMODName string) (*SubprocessWriter, error)

func (*SubprocessWriter) GetCurLogBytes

func (writer *SubprocessWriter) GetCurLogBytes() ([]byte, error)

func (*SubprocessWriter) Write

func (writer *SubprocessWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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