urls

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalizeEndpoint added in v0.10.2

func CanonicalizeEndpoint(str string) string

func CheckDNS1035 added in v0.4.0

func CheckDNS1035(str string) error

func CheckDNS1123 added in v0.4.0

func CheckDNS1123(str string) error

func ErrorDNS1035 added in v0.4.0

func ErrorDNS1035(provided string) error

func ErrorDNS1123 added in v0.4.0

func ErrorDNS1123(provided string) error

func ErrorEndpoint added in v0.10.0

func ErrorEndpoint(provided string) error

func ErrorEndpointDoubleSlash added in v0.10.0

func ErrorEndpointDoubleSlash(provided string) error

func ErrorEndpointEmptyPath added in v0.10.0

func ErrorEndpointEmptyPath() error

func ErrorInvalidURL added in v0.4.0

func ErrorInvalidURL(provided string) error

func Join

func Join(strs ...string) string

func Parse added in v0.4.0

func Parse(rawurl string) (*url.URL, error)

func ValidateEndpoint added in v0.10.0

func ValidateEndpoint(str string) (string, error)

Types

type Error added in v0.4.0

type Error struct {
	Kind ErrorKind
	// contains filtered or unexported fields
}

func (Error) Error added in v0.4.0

func (e Error) Error() string

type ErrorKind added in v0.4.0

type ErrorKind int
const (
	ErrUnknown ErrorKind = iota
	ErrInvalidURL
	ErrDNS1035
	ErrDNS1123
	ErrEndpoint
	ErrEndpointEmptyPath
	ErrEndpointDoubleSlash
)

func (ErrorKind) MarshalBinary added in v0.4.0

func (t ErrorKind) MarshalBinary() ([]byte, error)

MarshalBinary satisfies BinaryMarshaler

func (ErrorKind) MarshalText added in v0.4.0

func (t ErrorKind) MarshalText() ([]byte, error)

MarshalText satisfies TextMarshaler

func (ErrorKind) String added in v0.4.0

func (t ErrorKind) String() string

func (*ErrorKind) UnmarshalBinary added in v0.4.0

func (t *ErrorKind) UnmarshalBinary(data []byte) error

UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack

func (*ErrorKind) UnmarshalText added in v0.4.0

func (t *ErrorKind) UnmarshalText(text []byte) error

UnmarshalText satisfies TextUnmarshaler

Jump to

Keyboard shortcuts

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