Documentation ¶
Index ¶
- Variables
- func FindProxyTypeFor(s string) int
- func GetProxyTypeFor(act string) string
- func GetProxyTypeNames(f func(string))
- func LookupSRV(dialer proxy.Dialer, service, proto, name string) (cname string, addrs []*net.SRV, err error)
- func LookupSRVWith(dialer proxy.Dialer, dnsServer, service, proto, name string) (cname string, addrs []*net.SRV, err error)
- type CheckTorResult
- type Proxy
- type TimeoutError
- type TorState
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout error = &TimeoutError{}
ErrTimeout is the singleton timeout error instance for CoyIM
Functions ¶
func FindProxyTypeFor ¶
FindProxyTypeFor returns the index of the proxy type given
func GetProxyTypeFor ¶
GetProxyTypeFor will return the proxy type for the given i18n proxy name
func GetProxyTypeNames ¶
func GetProxyTypeNames(f func(string))
GetProxyTypeNames will yield all i18n proxy names to the function
Types ¶
type CheckTorResult ¶
CheckTorResult represents the JSON result from a check tor request
type Proxy ¶
type Proxy struct { Scheme string User *string Pass *string Host *string Port *string Path *string }
Proxy contains information about a proxy specification
func ParseProxy ¶
ParseProxy parses the given specification and returns a Proxy object with it
func (Proxy) ForPresentation ¶
ForPresentation represents a string valid for user presentation - blanking out the password
func (Proxy) ForProcessing ¶
ForProcessing represents a string valid for computer processing
type TimeoutError ¶
type TimeoutError struct{}
TimeoutError represents a timeout error
func (*TimeoutError) Error ¶
func (e *TimeoutError) Error() string
Click to show internal directories.
Click to hide internal directories.