tdproxy

package
v1.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

README

tdproxy

import "github.com/refraction-networking/gotapdance/tdproxy"

Overview

Package tdproxy implements TapdanceProxy, which can ListenAndServe() on a given port, so you can use it as a SOCKS or HTTP proxy elsewhere.

Imported Packages

Index

Package files

flow.go tapdance.go

Constants

const (
    ProxyStateInitialized = "Initialized"
    ProxyStateListening   = "Listening"
    ProxyStateStopped     = "Stopped"
    ProxyStateError       = "Error"
)

Variables

var Logger = tapdance.Logger()

type TapDanceProxy

type TapDanceProxy struct {
    State string
    // contains filtered or unexported fields
}

TODO: consider implementing https://golang.org/pkg/net/#Listener or other default interface

func NewTapDanceProxy
func NewTapDanceProxy(listenPort int) *TapDanceProxy
func (*TapDanceProxy) GetStatistics
func (proxy *TapDanceProxy) GetStatistics() (statistics string)
func (*TapDanceProxy) GetStats
func (proxy *TapDanceProxy) GetStats() (stats string)
func (*TapDanceProxy) ListenAndServe
func (proxy *TapDanceProxy) ListenAndServe() error
func (*TapDanceProxy) Stop
func (proxy *TapDanceProxy) Stop() error

Generated by godoc2ghmd

Documentation

Overview

Package tdproxy implements TapdanceProxy, which can ListenAndServe() on a given port, so you can use it as a SOCKS or HTTP proxy elsewhere.

Index

Constants

View Source
const (
	ProxyStateInitialized = "Initialized"
	ProxyStateListening   = "Listening"
	ProxyStateStopped     = "Stopped"
	ProxyStateError       = "Error"
)

Variables

View Source
var Logger = tapdance.Logger()

Functions

This section is empty.

Types

type TapDanceProxy

type TapDanceProxy struct {
	State string
	// contains filtered or unexported fields
}

TODO: consider implementing https://golang.org/pkg/net/#Listener or other default interface

func NewTapDanceProxy

func NewTapDanceProxy(listenPort int) *TapDanceProxy

func (*TapDanceProxy) GetStatistics

func (proxy *TapDanceProxy) GetStatistics() (statistics string)

func (*TapDanceProxy) GetStats

func (proxy *TapDanceProxy) GetStats() (stats string)

func (*TapDanceProxy) ListenAndServe

func (proxy *TapDanceProxy) ListenAndServe() error

func (*TapDanceProxy) Stop

func (proxy *TapDanceProxy) Stop() error

Jump to

Keyboard shortcuts

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