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)
| 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. |
| 122 | func NewAccessFetcher(getConn func(ctx context.Context) *grpc.ClientConn, allowInsecure bool) Fetcher { |
| 123 | return &accessFetcher{getConn: getConn, allowInsecure: allowInsecure} |
| 124 | } |
| 125 | |
| 126 | type accessFetcher struct { |
| 127 | getConn func(ctx context.Context) *grpc.ClientConn |
no outgoing calls