MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / UpsertInbound

Method UpsertInbound

internal/inbounds/memory.go:21–26  ·  view source on GitHub ↗
(inbound Inbound)

Source from the content-addressed store, hash-verified

19}
20
21func (s *MemoryStore) UpsertInbound(inbound Inbound) (Inbound, error) {
22 s.mu.Lock()
23 defer s.mu.Unlock()
24 s.inbounds[inbound.ID] = inbound
25 return inbound, nil
26}
27
28func (s *MemoryStore) GetInbound(id string) (Inbound, error) {
29 s.mu.RLock()

Calls

no outgoing calls