Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2021 v0.0.5 Jun 11, 2021 v0.0.1 Jun 4, 2021 Changes in this version + const OutputGuard + var Debugging = false + var DefaultTimeoutStart = 5 * time.Millisecond + var Version = "1.16.0-lch" + func ActivateHooks(supportedHooks LifeCycleHookFlags, hooks LifeCycleHooks, input *bufio.Reader, ...) []byte + func Debug(format string, args ...interface{}) + func DebugLimit(msg string, in []byte, limit int) + func IsBangPath(buf []byte) bool + func IsElf(buf []byte) bool + func IsExe(buf []byte) bool + func IsExecutable(buf []byte, runtime string) bool + func IsMach64(buf []byte) bool + func IsZip(buf []byte) bool + func Unzip(src []byte, dest string) error + func UnzipOrSaveJar(src []byte, dest string, jarFile string) error + func Zip(dir string) ([]byte, error) + type ActionAck struct + FinishOk *bool + FreshenOk *bool + HintOk *bool + Ok bool + PauseOk *bool + type ActionAckResponse struct + FinishOk bool + FreshenOk bool + HintOk bool + Ok bool + PauseOk bool + type ActionProxy struct + func NewActionProxy(baseDir string, compiler string, outFile *os.File, errFile *os.File) *ActionProxy + func (ap *ActionProxy) CompileAction(main string, srcDir string, binDir string) error + func (ap *ActionProxy) ExtractAction(buf *[]byte, suffix string) (string, error) + func (ap *ActionProxy) ExtractAndCompile(buf *[]byte, main string) (string, error) + func (ap *ActionProxy) ExtractAndCompileIO(r io.Reader, w io.Writer, main string, env string) + func (ap *ActionProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (ap *ActionProxy) SetEnv(env map[string]interface{}) + func (ap *ActionProxy) Start(port int) + func (ap *ActionProxy) StartLatestAction() error + type BaseSignals struct + func (b BaseSignals) Freshen(in map[string]string, out *os.File) + func (b BaseSignals) Hint(in map[string]string, out *os.File) + func (b BaseSignals) Pause(out *os.File) + func (b BaseSignals) Stop(out *os.File) + type ErrResponse struct + Error string + type Executor struct + func NewExecutor(logout *os.File, logerr *os.File, command string, env map[string]string, ...) (proc *Executor) + func (proc *Executor) Exited() bool + func (proc *Executor) Interact(in []byte) ([]byte, error) + func (proc *Executor) Singal(signal syscall.Signal) ([]byte, error) + func (proc *Executor) Start(waitForAck bool) error + func (proc *Executor) Stop() + type LifeCycleHookFlags struct + Finishing bool + Freshen bool + Hinting bool + Ok bool + Pausing bool + type LifeCycleHooks interface + Freshen func(in map[string]string, out *os.File) + Hint func(in map[string]string, out *os.File) + Pause func(out *os.File) + Stop func(out *os.File)