Versions in this module Expand all Collapse all v0 v0.0.2 Sep 13, 2021 Changes in this version + func DelNode(old map[string][]string, nodeName string) error + func DelTopic(topic string) error + func SubShare(topic, shareName, nodeName string) bool + func UnSubShare(topic, shareName, nodeName string) bool + type Group struct + func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) + func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result + func (g *Group) Release(key string) + type Redis struct + func (r *Redis) CloseCon() bool + func (r *Redis) CreatCon(network, add, password string, db int) error + func (r *Redis) DeleteV(key string) bool + func (r *Redis) ExitsV(key string) bool + func (r *Redis) GetV(key string) ([]byte, error) + func (r *Redis) SetEXP(key string, time int64) (bool, error) + func (r *Redis) SetNX(key string, value interface{}) bool + func (r *Redis) SetNXHasTime(key string, value interface{}, time int64) bool + func (r *Redis) SetV(key string, value interface{}) error + func (r *Redis) SetVHasTime(key string, value interface{}, time int64) error + type Result struct + Dups int + Err error + Val interface{} + type ShareNameInfo struct + V map[string]map[string]int + func GetTopicShare(topic string) (*ShareNameInfo, error) + func NewShareNameInfo() *ShareNameInfo + func (s *ShareNameInfo) RandShare() map[string][]string v0.0.2-temp Aug 19, 2021