control

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Forwarder forward.Maker // Forwarder makes local port forwards
	// contains filtered or unexported fields
}

func Make

func Make() *Control

func (*Control) Connect

func (c *Control) Connect(path string, quit <-chan struct{}) error

Connect a data connection

func (*Control) DumpState

func (c *Control) DumpState(_ context.Context, w io.Writer) error

func (*Control) Expose

func (c *Control) Expose(_ context.Context, port *vpnkit.Port) error

func (*Control) ListExposed

func (c *Control) ListExposed(_ context.Context) ([]vpnkit.Port, error)

func (*Control) Listen

func (c *Control) Listen(path string, quit <-chan struct{})

Listen for incoming data connections

func (*Control) ListenOnListener

func (c *Control) ListenOnListener(l net.Listener, listenerName string, quit <-chan struct{})

ListenOnListener listen for incoming data connections on an already setup listener

func (*Control) Mux

func (c *Control) Mux() libproxy.Multiplexer

func (*Control) SetMux

func (c *Control) SetMux(m libproxy.Multiplexer)

func (*Control) Unexpose

func (c *Control) Unexpose(_ context.Context, port *vpnkit.Port) error

Jump to

Keyboard shortcuts

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