SetUserID sets the userID in the context
(ctx context.Context, userID string)
| 297 | |
| 298 | // SetUserID sets the userID in the context |
| 299 | func SetUserID(ctx context.Context, userID string) context.Context { |
| 300 | return context.WithValue(ctx, UserIDFlag, userID) |
| 301 | } |
| 302 | |
| 303 | // UserID returns the userID from the context |
| 304 | func UserID(ctx context.Context) string { |
no outgoing calls
no test coverage detected