ContextWithShortcut injects shortcut name and execution ID into the context.
(ctx context.Context, name, executionId string)
| 189 | |
| 190 | // ContextWithShortcut injects shortcut name and execution ID into the context. |
| 191 | func ContextWithShortcut(ctx context.Context, name, executionId string) context.Context { |
| 192 | ctx = context.WithValue(ctx, ctxShortcutName, name) |
| 193 | ctx = context.WithValue(ctx, ctxExecutionId, executionId) |
| 194 | return ctx |
| 195 | } |
| 196 | |
| 197 | // ShortcutNameFromContext extracts the shortcut name from the context. |
| 198 | func ShortcutNameFromContext(ctx context.Context) (string, bool) { |
no outgoing calls