Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrInvalidHttpPort ¶
type ErrInvalidHttpPort struct {
// contains filtered or unexported fields
}
ErrInvalidHttpPort is returned if the port number is invalid.
func (ErrInvalidHttpPort) Error ¶
func (e ErrInvalidHttpPort) Error() string
Error returns the error message.
type ErrInvalidPath ¶
type ErrInvalidPath struct {
// contains filtered or unexported fields
}
ErrInvalidPath is returned if the path is invalid.
func (ErrInvalidPath) Error ¶
func (e ErrInvalidPath) Error() string
Error returns the error message.
type ErrRequiredStringEmpty ¶
type ErrRequiredStringEmpty struct{}
ErrRequiredStringEmpty is returned if the string is empty.
func (ErrRequiredStringEmpty) Error ¶
func (e ErrRequiredStringEmpty) Error() string
Error returns the error message.
type HttpPort ¶
type HttpPort int
HttpPort represents a port number. The port number must be between 0 and 65535.
func HttpPortFromInt ¶
HttpPortFromInt returns a HttpPort from an int. If the port number is invalid, it returns an error. The port number must be between 0 and 65535.
func HttpPortFromString ¶
HttpPortFromString returns a HttpPort from a string. If the port number is invalid, it returns an error. The port number must be between 0 and 65535.
func MustHttpPortFromInt ¶
MustHttpPortFromInt returns a HttpPort from an int. If the port number is invalid, it panics.
func MustHttpPortFromString ¶
MustHttpPortFromString returns a HttpPort from a string. If the port number is invalid, it panics.
type Path ¶
type Path string
Path represents a path.
func MustPathFromString ¶
MustPathFromString returns a Path from a string. If the path is invalid, it panics.
func PathFromString ¶
PathFromString returns a Path from a string. If the path is invalid, it returns an error.
type RequiredString ¶
type RequiredString string
RequiredString represents a string that is required. The string must not be empty.
func MustRequiredStringFromString ¶
func MustRequiredStringFromString(s string) RequiredString
MustRequiredStringFromString returns a RequiredString from a string. If the string is empty, it panics.
func RequiredStringFromString ¶
func RequiredStringFromString(s string) (RequiredString, error)
RequiredStringFromString returns a RequiredString from a string. If the string is empty, it returns an error.