Documentation ¶
Index ¶
- Constants
- func CountDetail(prefix string) (res map[string]string, err error)
- func GetSingleCount(prefix, req string) (res string, err error)
- func GetTimeAndCountList() (res []string, err error)
- func GetToTalCount() (res string, err error)
- func New(config *config.Config) *redis.Client
- func PullCountAndTime(res string) (err error)
- func SetSingleCount(ipInfo *model.IpInfo) (err error)
- func SetTotalCount() error
- type TimeAndCount
Constants ¶
View Source
const Prefix = "singleCount"
Variables ¶
This section is empty.
Functions ¶
func GetSingleCount ¶
拿到单个API被哪些IP调用或单个IP调用了哪些API prefix即为需要查看的
func GetTimeAndCountList ¶
func GetToTalCount ¶
func PullCountAndTime ¶
func SetSingleCount ¶
func SetTotalCount ¶
func SetTotalCount() error
Types ¶
type TimeAndCount ¶
Click to show internal directories.
Click to hide internal directories.