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
Click to show internal directories.
Click to hide internal directories.