| 25 | std::unordered_map<cripts::string_view, const Records *> Records::_gRecords; |
| 26 | |
| 27 | Records::Records(const cripts::string_view name) |
| 28 | { |
| 29 | TSOverridableConfigKey key; |
| 30 | TSRecordDataType type; |
| 31 | |
| 32 | if (TSHttpTxnConfigFind(name.data(), name.size(), &key, &type) == TS_SUCCESS) { |
| 33 | _name = name; |
| 34 | _key = key; |
| 35 | _type = type; |
| 36 | } else { |
| 37 | CFatal("[Records]: Invalid configuration variable '%.*s'", static_cast<int>(name.size()), name.data()); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | Records::ValueType |
| 42 | Records::_get(const cripts::Context *context) const |
nothing calls this directly
no test coverage detected