thriftrw: go.uber.org/thriftrw/internal/process Index | Files

package process

import "go.uber.org/thriftrw/internal/process"

Index

Package Files

client.go

type Client Uses

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

Client sends framed requests and receives framed responses from an external process.

func NewClient Uses

func NewClient(cmd *exec.Cmd) (*Client, error)

NewClient starts up the given external process and communicates with it over stdin and stdout using framed requests and responses.

The Cmd MUST NOT have Stdout or Stdin set.

func (*Client) Close Uses

func (c *Client) Close() error

Close detaches from the external process and waits for it to exit.

func (*Client) Send Uses

func (c *Client) Send(data []byte) ([]byte, error)

Send sends the given frame to the external process and returns the response.

Panics if Close was already called.

Package process imports 6 packages (graph) and is imported by 3 packages. Updated 2020-01-08. Refresh now. Tools for package owners.