Documentation ¶
Index ¶
- func Dial(addr string, timeout time.Duration) error
- func GetIPs() (ips []string)
- func GetLocalIP() (string, error)
- func GetMacAddrs() (macAddrs []string)
- func LocalListener() net.Listener
- func Ping(host string, port int) error
- type URL
- func (u *URL) Password() (string, bool)
- func (u *URL) QueryDuration(field string, expect int64) (ret time.Duration)
- func (u *URL) QueryInt(field string, expect int) (ret int)
- func (u *URL) QueryInt64(field string, expect int64) (ret int64)
- func (u *URL) QuerySecond(field string, expect int64) (ret time.Duration)
- func (u *URL) QueryString(field string, expect string) (ret string)
- func (u *URL) Username() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type URL ¶
URL wrap url.URL.
func (*URL) QueryDuration ¶
QueryDuration returns provided field's value in duration type.
func (*URL) QueryInt64 ¶
QueryInt64 returns provided field's value in int64 type.
func (*URL) QuerySecond ¶
QuerySecond returns provided field's value in duration type. Deprecated: use QueryDuration instead.
func (*URL) QueryString ¶
QueryString returns provided field's value in string type.
Click to show internal directories.
Click to hide internal directories.