Help us shape the future of Go! Take the 2026 Go Developer Survey

process

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 13 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 New

func New(cmd *exec.Cmd) (*Process, error)

func Start

func Start(cmd *exec.Cmd) (*Process, error)

func (*Process) Cmd

func (p *Process) Cmd() *exec.Cmd

func (*Process) Init

func (p *Process) Init() error

func (*Process) Post

func (p *Process) Post(req *schema.Request) (*schema.Response, error)

Post sends the request to a tools provider and waits for a response.

func (*Process) Read

func (p *Process) Read() error

func (*Process) Reset

func (p *Process) Reset(reason string)

func (*Process) Tools

func (*Process) WaitOnce

func (p *Process) WaitOnce() error

WaitOnce waits for the command completion. Safe for calling multiple times.

Jump to

Keyboard shortcuts

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