withWorkspaceID adds the workspace ID to the context.
(ctx context.Context, id string)
| 115 | |
| 116 | // withWorkspaceID adds the workspace ID to the context. |
| 117 | func withWorkspaceID(ctx context.Context, id string) context.Context { |
| 118 | return context.WithValue(ctx, workspaceIDKey{}, id) |
| 119 | } |
| 120 | |
| 121 | // getWorkspaceID retrieves the workspace ID from the context. |
| 122 | func getWorkspaceID(ctx context.Context) string { |
no outgoing calls