Documentation
¶
Index ¶
- Variables
- type Cache
- type CloakCache
- type CycleError
- type DanglingedgeError
- type Graph
- type GraphFinalizedError
- type NestedProxy
- func (np *NestedProxy) AddGlobalProxy(uri *url.URL, ep *common.Endpoint)
- func (np *NestedProxy) AddProxy(uri *url.URL, ep *common.Endpoint)
- func (np *NestedProxy) GetDialContext() ProxyDialContext
- func (np *NestedProxy) HasValue() bool
- func (np *NestedProxy) Merge(peer *NestedProxy) *NestedProxy
- func (np *NestedProxy) UDPProxies() bool
- type NodeRedeclarationError
- type ProxyDialContext
- type SemaGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSemaBoundary = &errSemaBoundary{} ErrSemaExcEntry = &errSemaExcEntry{} )
View Source
var (
ErrFinalized = &GraphFinalizedError{}
)
Functions ¶
This section is empty.
Types ¶
type CloakCache ¶
type CloakCache struct {
// contains filtered or unexported fields
}
func NewCloakCache ¶
func NewCloakCache() *CloakCache
func (*CloakCache) Add ¶
func (m *CloakCache) Add(key, value interface{})
func (*CloakCache) Get ¶
func (m *CloakCache) Get(key interface{}) (value interface{}, ok bool)
type CycleError ¶
type CycleError struct {
// contains filtered or unexported fields
}
func (*CycleError) Error ¶
func (e *CycleError) Error() string
type DanglingedgeError ¶
type DanglingedgeError struct {
// contains filtered or unexported fields
}
func (*DanglingedgeError) Error ¶
func (e *DanglingedgeError) Error() string
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
A minimal implementation of ASG or DAG (not too fast compare to direct mathematic formula on adjacency matrix) Since go do not provide such detailed reference design (godoc.org) Things must be done by myself, this's so called BoringALG
type GraphFinalizedError ¶
type GraphFinalizedError struct { }
func (*GraphFinalizedError) Error ¶
func (e *GraphFinalizedError) Error() string
type NestedProxy ¶
socks5 and http(s) proxy chain
func InitProxies ¶
func InitProxies() *NestedProxy
func (*NestedProxy) AddGlobalProxy ¶
func (np *NestedProxy) AddGlobalProxy(uri *url.URL, ep *common.Endpoint)
first 'ProxyURI' in toml then global proxy stamps by order
func (*NestedProxy) GetDialContext ¶
func (np *NestedProxy) GetDialContext() ProxyDialContext
func (*NestedProxy) HasValue ¶
func (np *NestedProxy) HasValue() bool
func (*NestedProxy) Merge ¶
func (np *NestedProxy) Merge(peer *NestedProxy) *NestedProxy
global proxy stamps and non-global individual proxy stamps binding to resolvers Ex
func (*NestedProxy) UDPProxies ¶
func (np *NestedProxy) UDPProxies() bool
type NodeRedeclarationError ¶
type NodeRedeclarationError struct {
// contains filtered or unexported fields
}
func (*NodeRedeclarationError) Error ¶
func (e *NodeRedeclarationError) Error() string
type ProxyDialContext ¶
type SemaGroup ¶ added in v1.1.14
type SemaGroup struct {
// contains filtered or unexported fields
}
func NewSemaGroup ¶ added in v1.1.14
func (*SemaGroup) BeginExclusive ¶ added in v1.1.14
func (*SemaGroup) EndExclusive ¶ added in v1.1.14
func (sg *SemaGroup) EndExclusive()
Click to show internal directories.
Click to hide internal directories.