Documentation
¶
Index ¶
- Constants
- func ValidateDurationPostitive(value string) (time.Duration, E.NestedError)
- func ValidateHTTPHeaders(headers map[string]string) (http.Header, E.NestedError)
- type Alias
- type Host
- type NewAlias
- type PathMode
- type PathPattern
- type PathPatterns
- type Port
- type Scheme
- type Signal
- type StopMethod
- type StreamPort
- type StreamScheme
- type Subdomain
Constants ¶
View Source
const ( MinPort = 0 MaxPort = 65535 ErrPort = Port(-1) NoPort = Port(0) )
Variables ¶
This section is empty.
Functions ¶
func ValidateDurationPostitive ¶
func ValidateDurationPostitive(value string) (time.Duration, E.NestedError)
func ValidateHTTPHeaders ¶
Types ¶
type Host ¶
type Host string
func ValidateHost ¶
func ValidateHost[String ~string](s String) (Host, E.NestedError)
type PathMode ¶
type PathMode string
func NewPathMode ¶
func NewPathMode(pm string) (PathMode, E.NestedError)
type PathPattern ¶
type PathPattern string
func NewPathPattern ¶
func NewPathPattern(s string) (PathPattern, E.NestedError)
type PathPatterns ¶
type PathPatterns = []PathPattern
func ValidatePathPatterns ¶
func ValidatePathPatterns(s []string) (PathPatterns, E.NestedError)
type Port ¶
type Port int
func ValidatePort ¶
func ValidatePort[String ~string](v String) (Port, E.NestedError)
func ValidatePortInt ¶
func ValidatePortInt[Int int | uint16](v Int) (Port, E.NestedError)
type Signal ¶
type Signal string
func ValidateSignal ¶
func ValidateSignal(s string) (Signal, E.NestedError)
type StopMethod ¶
type StopMethod string
const ( StopMethodPause StopMethod = "pause" StopMethodStop StopMethod = "stop" StopMethodKill StopMethod = "kill" )
func ValidateStopMethod ¶
func ValidateStopMethod(s string) (StopMethod, E.NestedError)
type StreamPort ¶
func ValidateStreamPort ¶
func ValidateStreamPort(p string) (_ StreamPort, err E.NestedError)
type StreamScheme ¶
type StreamScheme struct { ListeningScheme Scheme `json:"listening"` ProxyScheme Scheme `json:"proxy"` }
func ValidateStreamScheme ¶
func ValidateStreamScheme(s string) (ss *StreamScheme, err E.NestedError)
func (StreamScheme) IsCoherent ¶
func (s StreamScheme) IsCoherent() bool
IsCoherent checks if the ListeningScheme and ProxyScheme of the StreamScheme are equal.
It returns a boolean value indicating whether the ListeningScheme and ProxyScheme are equal.
func (StreamScheme) String ¶
func (s StreamScheme) String() string
Click to show internal directories.
Click to hide internal directories.