MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / EffectiveStatus

Method EffectiveStatus

internal/users/store.go:216–218  ·  view source on GitHub ↗

EffectiveStatus 计算用户的实际运行时状态(便捷方法,使用当前时间)。

()

Source from the content-addressed store, hash-verified

214
215// EffectiveStatus 计算用户的实际运行时状态(便捷方法,使用当前时间)。
216func (u User) EffectiveStatus() string {
217 return u.EffectiveStatusAt(time.Now())
218}
219
220// EffectiveEnabledAt 使用给定时间判断用户是否应被下发到节点。
221func (u User) EffectiveEnabledAt(now time.Time) bool {

Callers 4

EffectiveEnabledMethod · 0.95
BuildFunction · 0.80
filterUsersByQueryFunction · 0.80
handlePortalInfoMethod · 0.80

Calls 1

EffectiveStatusAtMethod · 0.95

Tested by

no test coverage detected