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

Method EffectiveEnabledAt

internal/users/store.go:221–223  ·  view source on GitHub ↗

EffectiveEnabledAt 使用给定时间判断用户是否应被下发到节点。

(now time.Time)

Source from the content-addressed store, hash-verified

219
220// EffectiveEnabledAt 使用给定时间判断用户是否应被下发到节点。
221func (u User) EffectiveEnabledAt(now time.Time) bool {
222 return u.EffectiveStatusAt(now) == StatusActive
223}
224
225// EffectiveEnabled 判断用户是否应被下发到节点(便捷方法,使用当前时间)。
226func (u User) EffectiveEnabled() bool {

Callers 1

SyncUsageWithFunction · 0.80

Calls 1

EffectiveStatusAtMethod · 0.95

Tested by

no test coverage detected