Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLimiter ¶
func DeleteLimiter(tag string)
Types ¶
type Limiter ¶
type Limiter struct {
SpeedLimit int
UserOnlineIP *sync.Map // Key: TagUUID, value: {Key: Ip, value: Uid}
OldUserOnline *sync.Map // Key: Ip, value: Uid
UUIDtoUID map[string]int // Key: UUID, value: Uid
UserLimitInfo *sync.Map // Key: TagUUID, value: UserLimitInfo
SpeedLimiter *sync.Map // key: TagUUID, value: *ratelimit.Bucket
AliveList map[int]int // Key: Uid, value: alive_ip
}
func AddLimiter ¶
func GetLimiter ¶
func (*Limiter) CheckLimit ¶
func (*Limiter) GetOnlineDevice ¶
func (l *Limiter) GetOnlineDevice() (*[]panel.OnlineUser, error)
type UserIpList ¶
Click to show internal directories.
Click to hide internal directories.