(pfx string)
| 133 | } |
| 134 | |
| 135 | func (st *status) isHandler(pfx string) bool { |
| 136 | if pfx == st.importerRoot { |
| 137 | return true |
| 138 | } |
| 139 | if _, ok := st.Sync[pfx]; ok { |
| 140 | return true |
| 141 | } |
| 142 | if _, ok := st.Storage[pfx]; ok { |
| 143 | return true |
| 144 | } |
| 145 | return false |
| 146 | } |
| 147 | |
| 148 | type storageStatus struct { |
| 149 | Primary bool `json:"primary,omitempty"` |