MCPcopy Create free account
hub / github.com/atripati/ark / LoadPatterns

Method LoadPatterns

pkg/store/store.go:213–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 return records, nil
212}
213func (s *JSONFileStore) LoadPatterns() ([]QueryPatternRecord, error) {
214 s.mu.RLock()
215 defer s.mu.RUnlock()
216
217 records := make([]QueryPatternRecord, 0, len(s.data.QueryPatterns))
218 for _, r := range s.data.QueryPatterns {
219 records = append(records, r)
220 }
221 return records, nil
222}
223
224func (s *JSONFileStore) Flush() error {
225 s.mu.Lock()

Callers 1

TestStorePatternSnapshotFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestStorePatternSnapshotFunction · 0.76