MCPcopy Index your code
hub / github.com/coder/coder / NewPathStore

Function NewPathStore

agent/agentgit/pathstore.go:19–24  ·  view source on GitHub ↗

NewPathStore creates a new PathStore.

()

Source from the content-addressed store, hash-verified

17
18// NewPathStore creates a new PathStore.
19func NewPathStore() *PathStore {
20 return &PathStore{
21 chatPaths: make(map[uuid.UUID]map[string]struct{}),
22 subscribers: make(map[uuid.UUID][]chan<- struct{}),
23 }
24}
25
26// AddPaths adds paths to every chat in chatIDs and notifies
27// their subscribers. Zero-value UUIDs are silently skipped.

Calls

no outgoing calls