(ctx context.Context)
| 120 | ) |
| 121 | |
| 122 | func CalledAsFromContext(ctx context.Context) string { |
| 123 | if calledAs, ok := ctx.Value(calledAsKey).(string); ok { |
| 124 | return calledAs |
| 125 | } |
| 126 | return "" |
| 127 | } |
| 128 | |
| 129 | func ConfigFromContext(ctx context.Context) *Config { |
| 130 | if v := ctx.Value(configKey); v != nil { |