Documentation ¶
Index ¶
- Constants
- func BinRead(reader io.Reader, data interface{}) error
- func BinWrite(writer io.Writer, data interface{}) error
- func CheckItfcNil(itfc interface{}) bool
- func CopyFile(dstName, srcName string) (written int64, err error)
- func Decrypt(ciphertext, key []byte) ([]byte, error)
- func DecryptHexText(hexText string, key []byte) ([]byte, error)
- func Encrypt(plantText, key []byte) ([]byte, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte, blockSize int) []byte
- func PaddingLeft(ori []byte, pad byte, length int) []byte
- func PathExists(path string) (bool, error)
- func ReadByte(r io.Reader) (byte, error)
- func ReadBytes(reader io.Reader) ([]byte, error)
- func ReadUint8(r io.Reader) (uint8, error)
- func ReadVarint(r io.Reader) (int, error)
- func StartStat()
- func Uint32Bytes(num uint32) []byte
- 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 ( EXECUTE_EVM_TX = iota FUNC_MAX_NUM )
View Source
const FLUSH_INTERVAL = 1 * time.Second // statistic cycle
Variables ¶
This section is empty.
Functions ¶
func CheckItfcNil ¶
func CheckItfcNil(itfc interface{}) bool
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func PathExists ¶
func Uint32Bytes ¶
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) Begin ¶
func (ss *StStatistic) Begin() func()
return endFunc if dont call endFunc(), goroutine will leak
func (*StStatistic) End ¶
func (ss *StStatistic) End(endFunc func())
func (*StStatistic) String ¶
func (ss *StStatistic) String() string
Click to show internal directories.
Click to hide internal directories.