MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / valid

Method valid

pkg/auth/rights/cache.go:96–98  ·  view source on GitHub ↗
(successTTL, errorTTL time.Duration)

Source from the content-addressed store, hash-verified

94}
95
96func (c *cachedAuthInfoRes) valid(successTTL, errorTTL time.Duration) bool {
97 return c != nil && c.cachedRes.valid(successTTL, errorTTL)
98}
99
100func (c *cachedAuthInfoRes) set(authInfo *ttnpb.AuthInfoResponse, err error) {
101 c.authInfo = authInfo

Callers

nothing calls this directly

Calls 1

validMethod · 0.45

Tested by

no test coverage detected