commandproxy

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 8 Imported by: 6

README

command proxy

Build Status Go Report Card GoDoc GitHub license gocover.io

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdio stdio

Functions

func ReplaceEscape added in v0.0.2

func ReplaceEscape(s string, re map[byte]string) string

func SplitCommand added in v0.0.2

func SplitCommand(cmd string) ([]string, error)

func Tunnel

func Tunnel(ctx context.Context, c1, c2 io.ReadWriteCloser, buf1, buf2 []byte) error

Types

type DialProxyCommand added in v0.0.3

type DialProxyCommand []string

func (*DialProxyCommand) DialContext added in v0.0.3

func (p *DialProxyCommand) DialContext(ctx context.Context, network string, address string) (net.Conn, error)

func (*DialProxyCommand) Format added in v0.0.4

func (p *DialProxyCommand) Format(network string, address string) []string

type Proxy

type Proxy struct {
	*exec.Cmd
}

func ProxyCommand

func ProxyCommand(ctx context.Context, name string, arg ...string) *Proxy

func (*Proxy) Stdio

func (p *Proxy) Stdio() (net.Conn, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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