LowLevelJSONConfig returns the config's underlying low-level JSON form for debugging. Deprecated: this is provided for debugging only and will be going away as the move to TOML-based configuration progresses. Do not depend on this.
()
| 964 | // Deprecated: this is provided for debugging only and will be going away |
| 965 | // as the move to TOML-based configuration progresses. Do not depend on this. |
| 966 | func (c *Config) LowLevelJSONConfig() map[string]interface{} { |
| 967 | // Make a shallow clone of c.jconf so we can mutate the |
| 968 | // handlerConfig key to make it explicitly true, without |
| 969 | // modifying anybody's else view of it. |
| 970 | ret := map[string]interface{}{} |
| 971 | for k, v := range c.jconf { |
| 972 | ret[k] = v |
| 973 | } |
| 974 | ret["handlerConfig"] = true |
| 975 | return ret |
| 976 | } |
no outgoing calls
no test coverage detected