mirror of
https://github.com/ginuerzh/gosocks5.git
synced 2024-08-11 17:54:31 +00:00
25 lines
432 B
Go
25 lines
432 B
Go
package client
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
|
|
"github.com/ginuerzh/gosocks5"
|
|
)
|
|
|
|
type Client struct {
|
|
selector gosocks5.Selector
|
|
}
|
|
|
|
func (c *Client) Dial(addr string, options ...DialOption) (net.Conn, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// DialOptions describes the options for Transporter.Dial.
|
|
type DialOptions struct {
|
|
Timeout time.Duration
|
|
}
|
|
|
|
// DialOption allows a common way to set dial options.
|
|
type DialOption func(opts *DialOptions)
|