fields

package
v0.0.0-...-64e30f5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func ValidateHTTPHeaders(headers map[string]string) (http.Header, E.NestedError)

Types

type Alias

type Alias string

type Host

type Host string

func ValidateHost

func ValidateHost[String ~string](s String) (Host, E.NestedError)

type NewAlias

type NewAlias = Alias

type PathMode

type PathMode string

func NewPathMode

func NewPathMode(pm string) (PathMode, E.NestedError)

func (PathMode) IsForward

func (p PathMode) IsForward() bool

func (PathMode) IsRemove

func (p PathMode) IsRemove() bool

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)

func (Port) String

func (p Port) String() string

type Scheme

type Scheme string

func NewScheme

func NewScheme[String ~string](s String) (Scheme, E.NestedError)

func (Scheme) IsHTTP

func (s Scheme) IsHTTP() bool

func (Scheme) IsHTTPS

func (s Scheme) IsHTTPS() bool

func (Scheme) IsStream

func (s Scheme) IsStream() bool

func (Scheme) IsTCP

func (s Scheme) IsTCP() bool

func (Scheme) IsUDP

func (s Scheme) IsUDP() bool

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

type StreamPort struct {
	ListeningPort Port `json:"listening"`
	ProxyPort     Port `json:"proxy"`
}

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

type Subdomain

type Subdomain = Alias

Jump to

Keyboard shortcuts

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