Versions in this module Expand all Collapse all v0 v0.4.1 Mar 14, 2022 Changes in this version + const MethodNoAuth + const SOCKSVersion + const ScanType + type MethodReply struct + Method byte + Ver byte + func (*MethodReply) Len() int64 + func (r *MethodReply) ReadFrom(in io.Reader) (int64, error) + type MethodRequest struct + Methods []byte + NMethods byte + Ver byte + func NewMethodRequest(version byte, methods ...byte) *MethodRequest + func (r *MethodRequest) Len() int64 + func (r *MethodRequest) WriteTo(w io.Writer) (int64, error) + type ScanResult struct + Auth bool + IP string + Port uint16 + ScanType string + Version int + func (r *ScanResult) ID() string + func (r *ScanResult) MarshalJSON() ([]byte, error) + func (r *ScanResult) String() string + type Scanner struct + func NewScanner(opts ...ScannerOption) *Scanner + func (s *Scanner) Scan(ctx context.Context, r *scan.Request) (result scan.Result, err error) + type ScannerOption func(*Scanner) + func WithDataTimeout(timeout time.Duration) ScannerOption + func WithDialTimeout(timeout time.Duration) ScannerOption