IsRevTreeID checks if the string looks like a RevTree ID.
(s string)
| 1832 | |
| 1833 | // IsRevTreeID checks if the string looks like a RevTree ID. |
| 1834 | func IsRevTreeID(s string) bool { |
| 1835 | // If we scan forwards past each digit until we hit `-`, we know this is a RevTree ID. |
| 1836 | for i, r := range s { |
| 1837 | if r >= '0' && r <= '9' { |
| 1838 | continue |
| 1839 | } |
| 1840 | if r == '-' && i > 0 { |
| 1841 | return true |
| 1842 | } |
| 1843 | break |
| 1844 | } |
| 1845 | return false |
| 1846 | } |
| 1847 | |
| 1848 | // GetStackTrace will return goroutine stack traces for all goroutines in Sync Gateway. |
| 1849 | func GetStackTrace() (bytes.Buffer, error) { |
no outgoing calls