GetConfig returns the global or context sensitive context
(ctx context.Context)
| 791 | |
| 792 | // GetConfig returns the global or context sensitive context |
| 793 | func GetConfig(ctx context.Context) *ConfigInfo { |
| 794 | if ctx == nil { |
| 795 | return globalConfig |
| 796 | } |
| 797 | c := ctx.Value(configContextKey) |
| 798 | if c == nil { |
| 799 | return globalConfig |
| 800 | } |
| 801 | return c.(*ConfigInfo) |
| 802 | } |
| 803 | |
| 804 | // CopyConfig copies the global config (if any) from srcCtx into |
| 805 | // dstCtx returning the new context. It also copies the rc request |
no outgoing calls
searching dependent graphs…