override this in unit tests
(ctx context.Context)
| 28 | var now = time.Now // override this in unit tests |
| 29 | |
| 30 | func newReq(ctx context.Context) cachedReq { |
| 31 | md := rpcmetadata.FromIncomingContext(ctx) |
| 32 | return cachedReq{AuthType: md.AuthType, AuthValue: md.AuthValue} |
| 33 | } |
| 34 | |
| 35 | func newEntityReq(ctx context.Context, id *ttnpb.EntityIdentifiers) cachedReq { |
| 36 | req := newReq(ctx) |
no test coverage detected