FallbackIDFromContext returns the fallback frequency plan ID and whether it's set using WithFallbackID.
(ctx context.Context)
| 27 | |
| 28 | // FallbackIDFromContext returns the fallback frequency plan ID and whether it's set using WithFallbackID. |
| 29 | func FallbackIDFromContext(ctx context.Context) (string, bool) { |
| 30 | id, ok := ctx.Value(fallbackKey).(string) |
| 31 | return id, ok |
| 32 | } |