(ctx context.Context)
| 77 | } |
| 78 | |
| 79 | func InstanceID(ctx context.Context) string { |
| 80 | elem := ctx.Value(instanceIDKey) |
| 81 | if elem == nil { |
| 82 | return "" |
| 83 | } |
| 84 | return elem.(string) |
| 85 | } |
| 86 | |
| 87 | func SetInstanceTokenFetched(ctx context.Context, fetched bool) context.Context { |
| 88 | return context.WithValue(ctx, instanceTokenFetched, fetched) |
no outgoing calls
no test coverage detected