Documentation ¶
Index ¶
- Constants
- Variables
- type DNSCryptInfo
- type DOHInfo
- type DOTInfo
- type ListenerConfiguration
- type Occurrence
- type Proxy
- func (proxy *Proxy) DoHQuery(name string, info *DOHInfo, ctx context.Context, request *[]byte, ...) (*[]byte, error)
- func (proxy *Proxy) DoTQuery(name string, ctx context.Context, request *[]byte, cbs ...interface{}) (*[]byte, error)
- func (proxy *Proxy) ExchangeDnScRypt(serverInfo *DNSCryptInfo, request *[]byte) (*[]byte, error)
- func (proxy *Proxy) StartProxy()
- type ProxyStartup
- type ServerInfo
- type ServerInterface
- type Servers
- type ServersInfo
Constants ¶
View Source
const ( OccurrenceNone = Occurrence(iota) OccurrenceLeading OccurrenceRandom )
View Source
const Windows = 7
Variables ¶
View Source
var ( FileDescriptors = make([]*os.File, 0) FileDescriptorNum = 0 )
Functions ¶
This section is empty.
Types ¶
type DNSCryptInfo ¶
type DNSCryptInfo struct { *dnscrypt.Resolver *ServerInfo Proxies *conceptions.NestedProxy // individual proxies chain IPAddr *atomic.Value //*EPRing RelayAddr *atomic.Value //*EPRing }
func (*DNSCryptInfo) Proto ¶
func (info *DNSCryptInfo) Proto() string
type DOHInfo ¶
type DOHInfo struct { *ServerInfo Path string // contains filtered or unexported fields }
type DOTInfo ¶
type DOTInfo struct {
*ServerInfo
}
type ListenerConfiguration ¶
type ListenerConfiguration struct { Regex *services.Regexp_builder Groups *map[string]*Servers ServerList *Servers }
type Occurrence ¶ added in v1.1.4
type Occurrence int
type Proxy ¶
type Proxy struct { *ProxyStartup *channels.ChannelMgr Timeout time.Duration CertRefreshDelay time.Duration MainProto string LocalInterface *string Routes *map[string][]string Tags *map[string]map[string]interface{} //key:tag values:servers ListenerCfg *map[int]*ListenerConfiguration RegisteredRelays []common.RegisteredServer ServersInfo *ServersInfo SmaxClients *conceptions.SemaGroup XTransport *tls.XTransport Ctx context.Context Cancel context.CancelFunc }
func (*Proxy) ExchangeDnScRypt ¶
func (proxy *Proxy) ExchangeDnScRypt(serverInfo *DNSCryptInfo, request *[]byte) (*[]byte, error)
func (*Proxy) StartProxy ¶
func (proxy *Proxy) StartProxy()
type ProxyStartup ¶
type ProxyStartup struct { RegisteredServers []common.RegisteredServer UserName string ListenAddresses []string Child bool }
type ServerInfo ¶
type ServerInfo struct { Name string Info ServerInterface Timeout time.Duration // contains filtered or unexported fields }
type ServerInterface ¶
type ServersInfo ¶
type ServersInfo struct { RegisteredServers []common.RegisteredServer Occurrence // contains filtered or unexported fields }
func NewServersInfo ¶
func NewServersInfo() *ServersInfo
Click to show internal directories.
Click to hide internal directories.