Documentation
¶
Overview ¶
Package network provides network-related tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateListenAddr ¶
ValidateListenAddr validates a listen address in the format host:port or :port
Types ¶
type Endpoint ¶
Endpoint is a remote service address paired with its TLS settings. TLS is set for an https:// URL and nil for anything else, which dials plaintext.
func (Endpoint) GRPCTarget ¶
GRPCTarget returns URL as a gRPC target. An http(s):// URL becomes its host:port, with 443 or 80 when the port is omitted; anything else, such as host:port or dns:///host:port, is returned as written.
Click to show internal directories.
Click to hide internal directories.