Documentation ¶
Index ¶
- Constants
- Variables
- func ResolveTCPAddr(addr Addr) (*net.TCPAddr, error)
- func ResolveUDPAddr(addr Addr) (*net.UDPAddr, error)
- type Addr
- type Buffer
- type Conn
- type Dialer
- func (d *Dialer) Dial(network, addr string) (net.Conn, error)
- func (d *Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func (d *Dialer) DialTLS(network, addr string) (net.Conn, error)
- func (d *Dialer) DialTLSContext(ctx context.Context, network, addr string) (net.Conn, error)
- type DomainTree
- type HTTPSResolverGet
- type HTTPSResolverPost
- type IPFilter
- type PacketConnGet
- type PacketConnPost
- type Resolver
- type TCPResolver
- type TLSResolver
- type UDPResolver
Constants ¶
View Source
const ( AddrTypeIPv4 = 1 AddrTypeDomain = 3 AddrTypeIPv6 = 4 )
View Source
const MaxAddrLen = 1 + 1 + 255 + 2
Variables ¶
View Source
var ErrInvalidAddrLen = errors.New("invalid address length")
View Source
var ErrInvalidAddrType = errors.New("invalid address type")
Functions ¶
Types ¶
type Dialer ¶
func (*Dialer) DialContext ¶
type DomainTree ¶
func NewDomainTree ¶
func NewDomainTree(sep string) *DomainTree
func (*DomainTree) Load ¶
func (t *DomainTree) Load(k string) interface{}
func (*DomainTree) Reset ¶
func (t *DomainTree) Reset()
func (*DomainTree) Store ¶
func (t *DomainTree) Store(k string, v interface{})
func (*DomainTree) UnsafeLoad ¶
func (t *DomainTree) UnsafeLoad(k string) interface{}
func (*DomainTree) UnsafeReset ¶
func (t *DomainTree) UnsafeReset()
func (*DomainTree) UnsafeStore ¶
func (t *DomainTree) UnsafeStore(k string, v interface{})
type HTTPSResolverGet ¶
func (*HTTPSResolverGet) DialContext ¶
type HTTPSResolverPost ¶
func (*HTTPSResolverPost) DialContext ¶
type IPFilter ¶
func NewIPFilter ¶
func NewIPFilter() *IPFilter
func (*IPFilter) UnsafeReset ¶
func (f *IPFilter) UnsafeReset()
type PacketConnGet ¶
type PacketConnGet struct { Conn // contains filtered or unexported fields }
type PacketConnPost ¶
type PacketConnPost struct { Conn // contains filtered or unexported fields }
type Resolver ¶
type Resolver interface { Resolve([]byte, int) (int, error) DialContext(ctx context.Context, network, address string) (net.Conn, error) }
func NewResolver ¶
type TCPResolver ¶
func (*TCPResolver) DialContext ¶
type TLSResolver ¶
func (*TLSResolver) DialContext ¶
type UDPResolver ¶
func (*UDPResolver) DialContext ¶
Click to show internal directories.
Click to hide internal directories.