getNetlifyID reads the request ID from the context.
(ctx context.Context)
| 146 | |
| 147 | // getNetlifyID reads the request ID from the context. |
| 148 | func getNetlifyID(ctx context.Context) string { |
| 149 | obj := ctx.Value(netlifyIDKey) |
| 150 | if obj == nil { |
| 151 | return "" |
| 152 | } |
| 153 | |
| 154 | return obj.(string) |
| 155 | } |
| 156 | |
| 157 | func withInviteToken(ctx context.Context, token string) context.Context { |
| 158 | return context.WithValue(ctx, inviteTokenKey, token) |
no test coverage detected
searching dependent graphs…