MCPcopy
hub / github.com/opentrace/opentrace / createStoreForMode

Function createStoreForMode

ui/src/OpenTraceApp.tsx:54–59  ·  view source on GitHub ↗
(mode: StoreMode)

Source from the content-addressed store, hash-verified

52}
53
54function createStoreForMode(mode: StoreMode): GraphStore {
55 if (mode.startsWith('server:')) {
56 return new ServerGraphStore(mode.slice('server:'.length));
57 }
58 return createLadybugStore();
59}
60
61/**
62 * Drop-in full OpenTrace application component.

Callers 1

OpenTraceAppFunction · 0.85

Calls 1

createLadybugStoreFunction · 0.90

Tested by

no test coverage detected