recorded returns every query seen so far, joined for substring matching.
()
| 1808 | |
| 1809 | // recorded returns every query seen so far, joined for substring matching. |
| 1810 | func (g *graphQLRecorder) recorded() string { |
| 1811 | g.mu.Lock() |
| 1812 | defer g.mu.Unlock() |
| 1813 | return strings.Join(g.queries, "\n") |
| 1814 | } |
| 1815 | |
| 1816 | // hostsConfig renders a config holding one token per host. |
| 1817 | func hostsConfig(tokens map[string]string) string { |