Versions in this module Expand all Collapse all v1 v1.0.1 Aug 31, 2021 Changes in this version + func BytesToInt64(buf []byte) int64 + func BytesToStr(b []byte) string + func Int64ToBytes(i int64) []byte + func IsNil(i interface{}) bool + func NChars(b []byte, n int) string + func PathExists(path string) (bool, error) + func Sm4Dec(value []byte) []byte + func Sm4En(value []byte) []byte + func StrToBytes(s string) []byte + type GlobalObj struct + HeartbeatInterval int + Host string + Limiter int + MaxConn int + MaxMsgChanLen uint32 + MaxPacketSize uint32 + MaxWorkerTaskLen uint32 + Name string + PairTime time.Duration + Port int + TcpServer ziface.IServer + Version string + WorkerPoolSize int64 + var GlobalObject *GlobalObj + func (g *GlobalObj) Reload() + type ServerPem struct + PublicKey []byte + Sign []byte + UA []byte + func GeneratePem(connId int64) (ServerPem, *sm2.PrivateKey)