url

package
v0.0.0-...-0ea6d3e Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package url provides operations on URLs and URL schemes for log forwarding destinations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAbsolute

func CheckAbsolute(u *URL) error

CheckAbsolute returns an error if Scheme or Host is empty.

func IsTLSScheme

func IsTLSScheme(scheme string) bool

IsTLSScheme returns true if scheme is recognized as needing TLS security, for example "https", "tls"

func PlainScheme

func PlainScheme(scheme string) string

PlainScheme returns the plain, non-TLS, version of scheme. Example: PlainScheme("https") == "http"

Types

type URL

type URL = url.URL

func Parse

func Parse(s string) (*URL, error)

Jump to

Keyboard shortcuts

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