Documentation ¶
Index ¶
- func FormatParagraphs(in string, width int, indent int) string
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) (string, error)
- func GetAttribute(tag html.Token, name string) string
- func GetNetworkConnection(onionService string, port int, proxyAddress string, timeout time.Duration) (net.Conn, error)
- func IsOnion(identifier string) bool
- func ProxyStatusMessage(status ProxyStatus) string
- func RemoveDuplicates(xs *[]string)
- func WithoutProtocol(url string) string
- func WithoutSubdomains(urlhost string) string
- type ProxyStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GetNetworkConnection ¶
func ProxyStatusMessage ¶
func ProxyStatusMessage(status ProxyStatus) string
func WithoutProtocol ¶
func WithoutSubdomains ¶
Types ¶
type ProxyStatus ¶
type ProxyStatus int
const ( ProxyStatusOK ProxyStatus = iota ProxyStatusWrongType ProxyStatusCannotConnect ProxyStatusTimeout )
func CheckTorProxy ¶
func CheckTorProxy(proxyAddress string) ProxyStatus
Detect whether a proxy is connectable and is a Tor proxy
Click to show internal directories.
Click to hide internal directories.