Documentation
¶
Index ¶
- func NewProxyTunHandler(p *Proxy) tun.Handler
- type Option
- func WithConnectAddress(addr string) Option
- func WithConnectPTY(args []string) Option
- func WithDownloadCounter(counter counter.Counter) Option
- func WithDumpDir(dir string) Option
- func WithListenAddress(addr string) Option
- func WithRawPTYMode(rawPTYMode bool) Option
- func WithTunClient(client tun.Client) Option
- func WithTunCrypt(crypt crypt.Crypt) Option
- func WithTunHandlerNewer(newer ProxyTunHandlerNewer) Option
- func WithTunServer(server tun.Server) Option
- func WithUploadCounter(counter counter.Counter) Option
- type Options
- type Proxy
- type ProxyTunHandlerNewer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxyTunHandler ¶ added in v1.2.0
Types ¶
type Option ¶
type Option func(opts *Options)
Option is option setter for proxy
func WithConnectAddress ¶
WithConnectAddress sets remote agent connect address opt
func WithConnectPTY ¶ added in v1.2.0
WithConnectPTY sets remote agent connect pty opt
func WithDownloadCounter ¶
WithDownloadCounter sets download counter opt
func WithDumpDir ¶ added in v1.1.0
WithDumpDir sets dump directory opt
func WithListenAddress ¶
WithListenAddress sets local proxy listen address opt
func WithRawPTYMode ¶ added in v1.2.0
WithRawPTYMode sets raw pty mode opt
func WithTunClient ¶
WithTunClient sets tunnel client opt
func WithTunCrypt ¶
WithTunCrypt sets tunnel crypt opt for normal mode
func WithTunHandlerNewer ¶
func WithTunHandlerNewer(newer ProxyTunHandlerNewer) Option
WithTunHandlerNewer sets tunnel handler newer opt
func WithTunServer ¶
WithTunServer sets tunnel server opt for reverse mode
func WithUploadCounter ¶
WithUploadCounter sets upload counter opt
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options is options of proxy
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy for proxying remote tcp server to local address
type ProxyTunHandlerNewer ¶
Click to show internal directories.
Click to hide internal directories.