Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHostPortAddr ¶
ParseHostPortAddr returns a scheme://host:port or host:port list
func SetFlagsFromEnv ¶
SetFlagsFromEnv parses all registered flags in the given flagset, and if they are not already set it attempts to set their values from environment variables. Environment variables take the name of the flag but are UPPERCASE, have the given prefix and any dashes are replaced by underscores - for example: some-flag => PUMP_SOME_FLAG
func URLStrsFromFlag ¶
URLStrsFromFlag returns a string slices from url got from the flag.
Types ¶
type URLsValue ¶
URLsValue define a slice of URLs as a type
func NewURLsValue ¶
NewURLsValue return a URLsValue from a string of URLs list
func (*URLsValue) HostString ¶
HostString return a string of host:port format list separated by comma
func (*URLsValue) Set ¶
Set parses a command line set of URLs formatted like: http://127.0.0.1:2380,http://10.1.1.2:80
func (*URLsValue) StringSlice ¶
StringSlice return a slice of string with formatted URL