Documentation ¶
Index ¶
- Constants
- func BinRead(reader io.Reader, data interface{}) error
- func BinWrite(writer io.Writer, data interface{}) error
- func CheckIPAddrSlc(str string) bool
- func CheckItfcNil(itfc interface{}) bool
- func CheckNumber(str string) bool
- func CopyFile(dstName, srcName string) (written int64, err error)
- func OnlyNumLetterUnderline(str string) bool
- func PathExists(path string) (bool, error)
- func ReadByte(r io.Reader) (byte, error)
- func ReadBytes(reader io.Reader) ([]byte, error)
- func ReadFileDataFromCmd(str string) ([]byte, error)
- func ReadUint8(r io.Reader) (uint8, error)
- func ReadVarint(r io.Reader) (int, error)
- func Start()
- func WriteBytes(writer io.Writer, bys []byte) error
- func WriteVarint(w io.Writer, i int) error
- type CountTime
- type Int64Slice
- type StStatistic
Constants ¶
View Source
const FLUSH_INTERVAL = 5 * time.Second // statistic cycle
View Source
const (
FUNC_MAX_NUM = iota
)
Variables ¶
This section is empty.
Functions ¶
func CheckIPAddrSlc ¶
func CheckItfcNil ¶
func CheckItfcNil(itfc interface{}) bool
func CheckNumber ¶
func OnlyNumLetterUnderline ¶
func PathExists ¶
func ReadFileDataFromCmd ¶
Types ¶
type Int64Slice ¶
type Int64Slice []int64
func (Int64Slice) Len ¶
func (p Int64Slice) Len() int
func (Int64Slice) Less ¶
func (p Int64Slice) Less(i, j int) bool
func (Int64Slice) Sort ¶
func (p Int64Slice) Sort()
func (Int64Slice) Swap ¶
func (p Int64Slice) Swap(i, j int)
type StStatistic ¶
type StStatistic struct {
// contains filtered or unexported fields
}
func CountSlc ¶
func CountSlc(index int) *StStatistic
func (*StStatistic) Add ¶
func (ss *StStatistic) Add(num int64)
func (*StStatistic) End ¶
func (ss *StStatistic) End(endFunc func())
func (*StStatistic) Reset ¶
func (ss *StStatistic) Reset()
func (*StStatistic) String ¶
func (ss *StStatistic) String() string
Click to show internal directories.
Click to hide internal directories.