Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseDuration ¶
MustParseDuration 解析时长字符串,解释失败即panic
func StringSliceContains ¶
StringSliceContains 检测字符串切片slice是否包含字符串item
Types ¶
type Addresses ¶
type Addresses []string
func NewAddresses ¶
func NewAddresses() Addresses
func (*Addresses) MergeAddresses ¶
func (*Addresses) PrepareAddress ¶
type Result ¶
type Result struct { TotalItems int OKItems []ResultItem ErrorItems []ResultItem }
func (*Result) PrintResult ¶
func (a *Result) PrintResult()
type ResultChan ¶
type ResultChan struct { OKChan chan ResultItem ErrorChan chan ResultItem }
func NewResult ¶
func NewResult() ResultChan
func (*ResultChan) WaitResults ¶
func (r *ResultChan) WaitResults(totalItems int) Result
type ResultItem ¶
func (*ResultItem) PrintError ¶
func (r *ResultItem) PrintError()
func (*ResultItem) PrintOK ¶
func (r *ResultItem) PrintOK()
type TcpChecker ¶
func (*TcpChecker) TcpCheck ¶
func (t *TcpChecker) TcpCheck(address string) error
func (*TcpChecker) TcpCheckSlice ¶
func (t *TcpChecker) TcpCheckSlice(addresses []string, result ResultChan)
Click to show internal directories.
Click to hide internal directories.