Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (*Limiter) CheckLimit ¶
func (*Limiter) GetOnlineDevice ¶
func (l *Limiter) GetOnlineDevice() (*[]panel.OnlineUser, error)
type Manager ¶ added in v1.1.4
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v1.1.4
func NewManager() *Manager
type UserIpList ¶
Click to show internal directories.
Click to hide internal directories.