unix_proxy

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BuffSize = 4096

Variables

View Source
var (
	ErrorProcessNotInit = errors.New("process not init")
)

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

The Conn type represents a WebSocket connection.

func (*Conn) Read

func (c *Conn) Read(p []byte) (int, error)

type UnixClient

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

func NewUnixClient

func NewUnixClient(name string) *UnixClient

func (*UnixClient) DialContext

func (uc *UnixClient) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

func (*UnixClient) DialContextUpgrade

func (d *UnixClient) DialContextUpgrade(req *http.Request) (net.Conn, *http.Response, error)

func (*UnixClient) ServeHTTP

func (uc *UnixClient) ServeHTTP(w http.ResponseWriter, request *http.Request)

func (*UnixClient) Update

func (uc *UnixClient) Update(process *exec.Cmd)

Jump to

Keyboard shortcuts

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