network

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientTypeClearNet = "clearnet"
	ClientTypeTor      = "tor"
)

Variables

This section is empty.

Functions

func GetClient

func GetClient(clientType ClientType) (*http.Client, error)

func GetClientForScheme

func GetClientForScheme(url *url.URL) (*http.Client, error)

GetClientForScheme returns correct client for url scheme. if tld is .onion, function will also return an onion client.

Types

type ClientType

type ClientType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL