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

Method SetRights

pkg/auth/rights/rights.go:40–42  ·  view source on GitHub ↗

SetRights sets the rights for the given UID.

(uid string, rights *ttnpb.Rights)

Source from the content-addressed store, hash-verified

38
39// SetRights sets the rights for the given UID.
40func (m *Map) SetRights(uid string, rights *ttnpb.Rights) {
41 m.syncMap.Store(uid, rights)
42}
43
44// GetRights returns the rights stored in the map for a given UID,
45// or nil if no value is present.

Callers 7

NewMapFunction · 0.95
TestMapFunction · 0.95
setApplicationRightsMethod · 0.80
setClientRightsMethod · 0.80
setGatewayRightsMethod · 0.80
setOrganizationRightsMethod · 0.80
setUserRightsMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestMapFunction · 0.76