withInstanceID adds the instance id to the context.
(ctx context.Context, id uuid.UUID)
| 84 | |
| 85 | // withInstanceID adds the instance id to the context. |
| 86 | func withInstanceID(ctx context.Context, id uuid.UUID) context.Context { |
| 87 | return context.WithValue(ctx, instanceIDKey, id) |
| 88 | } |
| 89 | |
| 90 | // getInstanceID reads the instance id from the context. |
| 91 | func getInstanceID(ctx context.Context) uuid.UUID { |
no outgoing calls
no test coverage detected
searching dependent graphs…