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

Function newEntityReq

pkg/auth/rights/cache.go:35–39  ·  view source on GitHub ↗
(ctx context.Context, id *ttnpb.EntityIdentifiers)

Source from the content-addressed store, hash-verified

33}
34
35func newEntityReq(ctx context.Context, id *ttnpb.EntityIdentifiers) cachedReq {
36 req := newReq(ctx)
37 req.UniqueID = unique.ID(ctx, id)
38 return req
39}
40
41type cachedReq struct {
42 UniqueID string

Callers 5

ApplicationRightsMethod · 0.85
ClientRightsMethod · 0.85
GatewayRightsMethod · 0.85
OrganizationRightsMethod · 0.85
UserRightsMethod · 0.85

Calls 2

IDFunction · 0.92
newReqFunction · 0.85

Tested by

no test coverage detected