# 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
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
# Functions
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
TODO: consider implementing https://golang.org/pkg/net/#Listener or other default interface.