withConfig adds the tenant configuration to the context.
(ctx context.Context, config *conf.Configuration)
| 71 | |
| 72 | // withConfig adds the tenant configuration to the context. |
| 73 | func withConfig(ctx context.Context, config *conf.Configuration) context.Context { |
| 74 | return context.WithValue(ctx, configKey, config) |
| 75 | } |
| 76 | |
| 77 | func getConfig(ctx context.Context) *conf.Configuration { |
| 78 | obj := ctx.Value(configKey) |
no outgoing calls
no test coverage detected
searching dependent graphs…