Versions in this module Expand all Collapse all v1 v1.0.3 Apr 22, 2022 Changes in this version + const DelayDuration + const HandleKeyMid + const HandleKeySession + const HttpDeadDuration + const MaxSessionNum + const MaxUint64 + const MchIDKey + const MemberNode + const MemberSidSize + const MessageDeal + const MinUint64 + const MsgTypeNone + const MsgTypeNotice + const MsgTypePush + const MsgTypeRequest + const MsgTypeResponse + const PacketHeadLength + const ServerNode + const SessionIDKey + const StatusOne + const StatusTwo + const StatusZero + const TcpDeadDuration + const TcpDealJson + const TcpDealProtobuf + const TcpHeartDuration + const TcpPoolIdMax + const TcpPoolIdMin + const TcpPoolLifeTime + const TcpPoolMaxWaitTime + const TcpReadBufLen + func GenAddr(host, port string) string + func GetPsutil() *deal.Psutil + func InStringArr(s string, arr []string) bool + func MsgMarsh(deal uint32, input interface{}) ([]byte, error) + func MsgUnMarsh(deal uint32, msg []byte, output interface{}) error + func PacketMarsh(p *Packet) ([]byte, error) + func PrintMsg(msg *deal.Msg, data ...interface{}) + func SetConfig(file string) + func VersionCompare(v1, v2 string) bool + type Addr struct + Ip string + Port string + func ParseAddr(s string) (*Addr, error) + type Base struct + TcpDeal uint32 + Version string + type Cache struct + Values map[string]interface{} + func GetCache() *Cache + func NewCache() *Cache + func (c *Cache) Del(k string) + func (c *Cache) Get(k string) interface{} + func (c *Cache) GetBool(k string) bool + func (c *Cache) GetFloat(k string) float64 + func (c *Cache) GetInt(k string) int + func (c *Cache) GetInt32(k string) int32 + func (c *Cache) GetInt64(k string) int64 + func (c *Cache) GetString(k string) string + func (c *Cache) GetUInt(k string) uint + func (c *Cache) GetUInt32(k string) uint32 + func (c *Cache) GetUInt64(k string) uint64 + func (c *Cache) Set(k string, v interface{}) + type Config struct + Base Base + Master Master + Member Member + Server Server + func GetConfig() *Config + type Master struct + HttpAddr string + TcpAddr string + type Member struct + InnerAddr string + MasterAddr string + TcpAddr string + type Packet struct + Data []byte + Length uint16 + func PacketUnMarsh(bys []byte) (int, []*Packet) + type Server struct + MasterAddr string + TcpAddr string v1.0.1 Apr 22, 2022