Documentation ¶
Index ¶
- Constants
- func CanonicalizeEndpoint(str string) string
- func CheckDNS1035(str string) error
- func CheckDNS1123(str string) error
- func ErrorDNS1035(provided string) error
- func ErrorDNS1123(provided string) error
- func ErrorEndpoint(provided string) error
- func ErrorEndpointDoubleSlash(provided string) error
- func ErrorEndpointEmptyPath() error
- func ErrorInvalidURL(provided string) error
- func Join(str string, strs ...string) string
- func Parse(rawurl string) (*url.URL, error)
- func TrimQueryParamsStr(str string) string
- func TrimQueryParamsURL(u url.URL) string
- func ValidateEndpoint(str string) (string, error)
Constants ¶
View Source
const ( ErrInvalidURL = "urls.invalid_url" ErrDNS1035 = "urls.dns1035" ErrDNS1123 = "urls.dns1123" ErrEndpoint = "urls.endpoint" ErrEndpointEmptyPath = "urls.endpoint_empty_path" ErrEndpointDoubleSlash = "urls.endpoint_double_slash" )
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeEndpoint ¶ added in v0.10.2
func CheckDNS1035 ¶ added in v0.4.0
func CheckDNS1123 ¶ added in v0.4.0
func ErrorDNS1035 ¶ added in v0.4.0
func ErrorDNS1123 ¶ added in v0.4.0
func ErrorEndpoint ¶ added in v0.10.0
func ErrorEndpointDoubleSlash ¶ added in v0.10.0
func ErrorEndpointEmptyPath ¶ added in v0.10.0
func ErrorEndpointEmptyPath() error
func ErrorInvalidURL ¶ added in v0.4.0
func TrimQueryParamsStr ¶ added in v0.12.0
func TrimQueryParamsURL ¶ added in v0.12.0
func ValidateEndpoint ¶ added in v0.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.