Versions in this module Expand all Collapse all v1 v1.0.0 Jul 6, 2022 Changes in this version + func CountDetail(prefix string) (res map[string]string, err error) + func GetCountBytime() (res []string, err error) + func GetToTalCount() (res string, err error) + func MD5_SALT(str string) string + func SignIn(p *model.User) (err error) + func SignUp(p *model.User) (err error) + func SingleCount(prefix string, req string) (res string, err error) + func WatchRedis() + type Response struct + StatusCode int32 + StatusMsg string + type Service struct + BadIp []model.BadIpRsp + BadWords []string + KfkChan chan []byte + func New(cfg *config.Config, db *gorm.DB, rds *redis.Client, kafka sarama.Consumer) *Service + func (s *Service) DeleteBadIP(str string) error + func (s *Service) DeleteBadWords(str string) error + func (s *Service) FlushBadIp() error + func (s *Service) FlushBadWords() + func (s *Service) GetUserInfo(selfId uint64, UserID uint64) *User + func (s *Service) InitKafkaConsumer(cfg *config.Config, consumer sarama.Consumer) + func (s *Service) PhasePackage() + func (s *Service) SetBadIP(badip *model.BadIp) error + func (s *Service) SetBadWords(badwords *model.BadWords) error + type User struct + ID uint64 + Password string + Username string