Documentation ¶
Index ¶
- 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
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDetail ¶
func GetAllRouterAndCount() (res []model.Api, err error) { if res, err = mysql.GetAllRouterAndCount(); err != nil { return nil, err } else { return res, nil }
}
func GetCountBytime ¶
func GetCountBytime() (timeList, countList string, err error) {
if timeList, countList, err = redis.GetTimeAndCountList(); err != nil { fmt.Println(err) return } else { return } }
func GetToTalCount ¶
func SingleCount ¶
拿到单个API被哪些IP调用或单个IP调用了哪些API prefix即为需要查看的
func WatchRedis ¶
func WatchRedis()
Types ¶
Click to show internal directories.
Click to hide internal directories.