Documentation ¶
Overview ¶
Package outbound implements multiple dns client and dispatcher for outbound connection.
- Copyright (c) 2019 shawn1m. All rights reserved.
- Use of this source code is governed by The MIT License (MIT) that can be
- found in the LICENSE file..
Index ¶
- Variables
- func ExtractDNSAddress(rawAddress string, protocol string) (host string, port string, err error)
- func ExtractFullUrl(rawAddress string, protocol string) (string, error)
- func ExtractTLSDNSHostName(rawAddress string) (host string, err error)
- func ToNetwork(protocol string) string
- type BaseResolver
- type HTTP3Resolver
- type HTTPSResolver
- type Resolver
- type TCPResolver
- type TCPTLSResolver
- type UDPResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var IdleTimeout = 30 * time.Second
View Source
var InitialCapacity = 0
View Source
var MaxCapacity = 15
Functions ¶
func ExtractDNSAddress ¶
ExtractDNSAddress parse all format, return literal IPv6 address
func ExtractTLSDNSHostName ¶
Types ¶
type BaseResolver ¶
type BaseResolver struct {
// contains filtered or unexported fields
}
func (*BaseResolver) CreateBaseConn ¶
func (r *BaseResolver) CreateBaseConn() (net.Conn, error)
func (*BaseResolver) Init ¶
func (r *BaseResolver) Init() error
type HTTP3Resolver ¶
type HTTP3Resolver struct { BaseResolver // contains filtered or unexported fields }
func (*HTTP3Resolver) Init ¶
func (r *HTTP3Resolver) Init() error
type HTTPSResolver ¶
type HTTPSResolver struct { BaseResolver // contains filtered or unexported fields }
func (*HTTPSResolver) Init ¶
func (r *HTTPSResolver) Init() error
type Resolver ¶
func NewResolver ¶
func NewResolver(u *common.DNSUpstream) Resolver
type TCPResolver ¶
type TCPResolver struct { BaseResolver // contains filtered or unexported fields }
func (*TCPResolver) Init ¶
func (r *TCPResolver) Init() error
type TCPTLSResolver ¶
type TCPTLSResolver struct { BaseResolver // contains filtered or unexported fields }
func (*TCPTLSResolver) Init ¶
func (r *TCPTLSResolver) Init() error
type UDPResolver ¶
type UDPResolver struct {
BaseResolver
}
func (*UDPResolver) Init ¶
func (r *UDPResolver) Init() error
Click to show internal directories.
Click to hide internal directories.