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

Function NewAccessFetcher

pkg/auth/rights/fetcher.go:122–124  ·  view source on GitHub ↗

NewAccessFetcher returns a new rights fetcher that fetches from the Access role returned by getConn. The allowInsecure argument indicates whether it's allowed to send credentials over connections without TLS.

(getConn func(ctx context.Context) *grpc.ClientConn, allowInsecure bool)

Source from the content-addressed store, hash-verified

120// NewAccessFetcher returns a new rights fetcher that fetches from the Access role returned by getConn.
121// The allowInsecure argument indicates whether it's allowed to send credentials over connections without TLS.
122func NewAccessFetcher(getConn func(ctx context.Context) *grpc.ClientConn, allowInsecure bool) Fetcher {
123 return &accessFetcher{getConn: getConn, allowInsecure: allowInsecure}
124}
125
126type accessFetcher struct {
127 getConn func(ctx context.Context) *grpc.ClientConn

Callers 2

TestAccessFetcherFunction · 0.92
initRightsMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestAccessFetcherFunction · 0.74