Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNS = errorx.NewNamespace("net_util") ErrInvalidAddress = ErrNS.NewType("invalid_address") )
Functions ¶
func ParseHostAndPortFromAddress ¶
ParseHostAndPortFromAddress parse an address in format `host:port` like `127.0.0.1:2379`. Returns error if parse failed.
func ParseHostAndPortFromAddressURL ¶
ParseHostAndPortFromAddressURL parse an address in format `protocol://ip:port/...` like `http://127.0.0.1:2379`. Returns error if parse failed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.