Documentation ¶
Index ¶
- type BytesPool
- type BytesPoolBufferSize
- type BytesPoolCapacity
- type ClientSemaphore
- type DialContext
- type DialTimeout
- type Dialer
- type Dialers
- type GetPenalty
- type Global
- func (Global) BytesPool(capacity BytesPoolCapacity, size BytesPoolBufferSize) BytesPool
- func (Global) BytesPoolBufferSize() BytesPoolBufferSize
- func (Global) BytesPoolCapacity() BytesPoolCapacity
- func (g *Global) NewServer() NewServer
- func (Global) TailscaleDial(tsServer *tsnet.Server) TailscaleDial
- func (Global) TsServer() *tsnet.Server
- type HandleConn
- type HandleRequest
- type IdleTimeout
- type MaxClients
- type NewServer
- type NoDirect
- type NoDirectPatterns
- type NoUpstreamPatterns
- type OnNotSelected
- type OnSelected
- type OutboundPacket
- type Scope
- type Serve
- type Server
- func (Server) ClientSemaphore(max MaxClients) ClientSemaphore
- func (Server) DialTimeout() DialTimeout
- func (Server) DirectDialer(noDirectPatterns NoDirectPatterns, noDirect NoDirect) Dialers
- func (Server) HTTPTransports(dialers Dialers) (transports []*http.Transport)
- func (Server) HandleConn(dialers Dialers, _idleTimeout IdleTimeout, bytesPool BytesPool, ...) HandleConn
- func (Server) HandleRequest(transports []*http.Transport, bytesPool BytesPool) HandleRequest
- func (Server) IdleTimeout() IdleTimeout
- func (Server) MaxClients() MaxClients
- func (Server) NoDirect() NoDirect
- func (Server) NoDirectPatterns() NoDirectPatterns
- func (Server) NoUpstreamPatterns() NoUpstreamPatterns
- func (Server) OnNotSelected() OnNotSelected
- func (Server) OnSelected() OnSelected
- func (Server) Penalty() (onSelected OnSelected, onNotSelected OnNotSelected, get GetPenalty)
- func (Server) Serve(clientSem ClientSemaphore, handleRequest HandleRequest, handleConn HandleConn) Serve
- func (Server) UpstreamDialers(upstreams Upstreams, noUpstreamPatterns NoUpstreamPatterns, ...) (dialers Dialers)
- func (Server) Upstreams() Upstreams
- type TailscaleDial
- type Upstream
- type Upstreams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BytesPoolBufferSize ¶
type BytesPoolBufferSize int
type BytesPoolCapacity ¶
type BytesPoolCapacity int
type ClientSemaphore ¶
type ClientSemaphore chan struct{}
type DialContext ¶
type DialTimeout ¶
type Dialer ¶
type Dialer struct { DialContext DialContext Name string Addr string Deny *regexp.Regexp }
type Global ¶
type Global struct {
Scope Scope
}
func (Global) BytesPool ¶
func (Global) BytesPool( capacity BytesPoolCapacity, size BytesPoolBufferSize, ) BytesPool
func (Global) BytesPoolBufferSize ¶
func (Global) BytesPoolBufferSize() BytesPoolBufferSize
func (Global) BytesPoolCapacity ¶
func (Global) BytesPoolCapacity() BytesPoolCapacity
func (Global) TailscaleDial ¶
func (Global) TailscaleDial( tsServer *tsnet.Server, ) TailscaleDial
type HandleConn ¶
type HandleRequest ¶
type IdleTimeout ¶
type MaxClients ¶
type MaxClients int
type NoDirectPatterns ¶
type NoDirectPatterns []string
type NoUpstreamPatterns ¶
type NoUpstreamPatterns []string
type OnNotSelected ¶
func (OnNotSelected) IsReducer ¶
func (OnNotSelected) IsReducer()
type OnSelected ¶
func (OnSelected) IsReducer ¶
func (OnSelected) IsReducer()
type OutboundPacket ¶
type Serve ¶
type Serve func( ctx context.Context, socksLn *net.TCPListener, httpLn *net.TCPListener, ) ( err error, )
type Server ¶
type Server struct {
Scope Scope
}
func (Server) ClientSemaphore ¶
func (Server) ClientSemaphore( max MaxClients, ) ClientSemaphore
func (Server) DialTimeout ¶
func (Server) DialTimeout() DialTimeout
func (Server) DirectDialer ¶
func (Server) DirectDialer( noDirectPatterns NoDirectPatterns, noDirect NoDirect, ) Dialers
func (Server) HTTPTransports ¶
func (Server) HandleConn ¶
func (Server) HandleConn( dialers Dialers, _idleTimeout IdleTimeout, bytesPool BytesPool, onSelected OnSelected, onNotSelected OnNotSelected, getPenalty GetPenalty, ) HandleConn
func (Server) HandleRequest ¶
func (Server) HandleRequest( transports []*http.Transport, bytesPool BytesPool, ) HandleRequest
func (Server) IdleTimeout ¶
func (Server) IdleTimeout() IdleTimeout
func (Server) MaxClients ¶
func (Server) MaxClients() MaxClients
func (Server) NoDirectPatterns ¶
func (Server) NoDirectPatterns() NoDirectPatterns
func (Server) NoUpstreamPatterns ¶
func (Server) NoUpstreamPatterns() NoUpstreamPatterns
func (Server) OnNotSelected ¶
func (Server) OnNotSelected() OnNotSelected
func (Server) OnSelected ¶
func (Server) OnSelected() OnSelected
func (Server) Penalty ¶
func (Server) Penalty() ( onSelected OnSelected, onNotSelected OnNotSelected, get GetPenalty, )
func (Server) Serve ¶
func (Server) Serve( clientSem ClientSemaphore, handleRequest HandleRequest, handleConn HandleConn, ) Serve
func (Server) UpstreamDialers ¶
func (Server) UpstreamDialers( upstreams Upstreams, noUpstreamPatterns NoUpstreamPatterns, tailscaleDial TailscaleDial, ) (dialers Dialers)
type TailscaleDial ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.