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

Method getData

cmd/ttn-lw-cli/internal/util/cache.go:51–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (c *AuthCache) getData() *AuthData {
52 data := &c.data.AuthData
53 if c.id != "" {
54 if c.data.ByID == nil {
55 c.data.ByID = make(map[string]*AuthData)
56 }
57 var ok bool
58 data, ok = c.data.ByID[c.id]
59 if !ok {
60 data = &AuthData{}
61 c.data.ByID[c.id] = data
62 }
63 }
64 return data
65}
66
67// Get gets a key from the auth cache.
68func (c *AuthCache) Get(key string) any {

Callers 4

GetMethod · 0.95
SetMethod · 0.95
unsetMethod · 0.95
byte.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected