Versions in this module Expand all Collapse all v1 v1.5.1 Jan 20, 2020 v1.5.0 Jan 8, 2020 Changes in this version + func RandomString(length int, seed RandomSeed) string + func SubString(sourceString string, begin, end int) string + type RandomSeed byte + const LowerLetter + const Numeric + const UpperLetter + func (s RandomSeed) Runes() []rune v1.4.0 Nov 13, 2019 Changes in this version + func DailTimeOut(target string, timeout time.Duration) (c *net.TCPConn, err error) v1.1.1 Jun 11, 2019 v1.1.0 May 9, 2019 Changes in this version + const PRO_MEM + func GetProcessMemory(pid int) (used uint64, err error) v1.0.0 Apr 2, 2019 Changes in this version + const BlockCount + const BlockHeaderSize + const BlockSize + const ConnectIdleTime + const DefaultDataPartitionSize + const DefaultTinySizeLimit + const ExtentSize + const GB + const KB + const MB + const MEMINFO + const PB + const PacketHeaderSize + const PerBlockCrcSize + const ReadBlockSize + const TB + const TaskWorkerInterval + var ErrNoValidMaster = errors.New("no valid master") + func GetMemInfo() (total, used uint64, err error) + func IsIPV4(val interface{}) bool + func Max(a, b int) int + func Min(a, b int) int + type ConnectPool struct + func NewConnectPool() (cp *ConnectPool) + func (cp *ConnectPool) GetConnect(targetAddr string) (c *net.TCPConn, err error) + func (cp *ConnectPool) PutConnect(c *net.TCPConn, forceClose bool) + type MasterHelper interface + AddNode func(address string) + Leader func() string + Nodes func() []string + Request func(method, path string, param map[string]string, body []byte) (data []byte, err error) + func NewMasterHelper() MasterHelper + type Object struct + type Pool struct + func NewPool(min, max int, timeout int64, target string) (p *Pool) + func (p *Pool) GetConnectFromPool() (c *net.TCPConn, err error) + func (p *Pool) NewConnect(target string) (c *net.TCPConn, err error) + func (p *Pool) PutConnectObjectToPool(o *Object) Incompatible versions in this module v2.0.0+incompatible Apr 10, 2020 v2.0.0-rc.1+incompatible Apr 9, 2020