Documentation ¶
Index ¶
- Variables
- func ExtractHost(b []byte) (host, warning string, err error)
- func ExtractIPs(b []byte) (ips []netip.Addr, err error)
- func ExtractProto(b []byte) (tcp, udp bool, err error)
- func FetchFile(ctx context.Context, client *http.Client, url string) (host string, err error)
- func FetchMultiFiles(ctx context.Context, client *http.Client, urls []string, failEarly bool) (hostToURL map[string]string, errors []error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ExtractHost ¶
func ExtractProto ¶
func FetchMultiFiles ¶
func FetchMultiFiles(ctx context.Context, client *http.Client, urls []string, failEarly bool, ) (hostToURL map[string]string, errors []error)
FetchMultiFiles fetches multiple Openvpn files in parallel and parses them to extract each of their host. A mapping from host to URL is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.