Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPort = 80
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
Host string `json:"host"`
Port int `json:"port"`
Raw string `json:"raw,omitempty"`
}
Endpoint represents a canonical host:port pair.
func ParseWithDefault ¶
ParseWithDefault splits raw into host and port, applying defaultPort to bare hosts when > 0.
Click to show internal directories.
Click to hide internal directories.