Documentation
¶
Index ¶
- type Dialer
- type Proxy
- type Service
- func (s *Service) Kill(id string)
- func (s *Service) Load(id string) (p Proxy, ok bool)
- func (s *Service) Proxies() (proxies []Proxy)
- func (s *Service) Proxy(p Proxy) (err error)
- func (s *Service) Register(id string, dialer Dialer) (err error)
- func (s *Service) Serve(ctx context.Context) (err error)
- func (s *Service) Unregister(id string, dialer Dialer) (err error)
- type Traffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy interface {
ID() string
Close() error
Bind(Dialer) error
Unbind(Dialer) error
Accept() (net.Conn, error)
Handle(net.Conn, Traffic) error
}
Proxy combination listener and dialer.
type Service ¶
type Service struct {
Traff Traffic
// contains filtered or unexported fields
}
Service manages all proxies, and handles all user connections, and records all incoming and outgoing traffic.
Click to show internal directories.
Click to hide internal directories.