Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xUnixIO/pulse
/ EffectiveEnabled
Method
EffectiveEnabled
internal/users/store.go:226–228 ·
view source on GitHub ↗
EffectiveEnabled 判断用户是否应被下发到节点(便捷方法,使用当前时间)。
()
Source
from the content-addressed store, hash-verified
224
225
// EffectiveEnabled 判断用户是否应被下发到节点(便捷方法,使用当前时间)。
226
func
(u User) EffectiveEnabled() bool {
227
return
u.EffectiveStatus() == StatusActive
228
}
Callers
10
ComputeNodeConfigHash
Function · 0.80
filterEnabled
Function · 0.80
TestResetTraffic_ResetsLimitedUser
Function · 0.80
TestSyncUsage_UpdatesBytesAndReloads
Function · 0.80
TestSyncUsage_TrafficRate_QuotaWithRate
Function · 0.80
BuildXrayConfig
Function · 0.80
filterEnabledAccesses
Function · 0.80
handlePortalInfo
Method · 0.80
handleSub
Method · 0.80
TestSyncUsageDisablesLimitedUserAndReloadsNode
Function · 0.80
Calls
1
EffectiveStatus
Method · 0.95
Tested by
4
TestResetTraffic_ResetsLimitedUser
Function · 0.64
TestSyncUsage_UpdatesBytesAndReloads
Function · 0.64
TestSyncUsage_TrafficRate_QuotaWithRate
Function · 0.64
TestSyncUsageDisablesLimitedUserAndReloadsNode
Function · 0.64