()
| 12 | } |
| 13 | |
| 14 | func NewMemoryStore() *MemoryStore { |
| 15 | return &MemoryStore{ |
| 16 | inbounds: make(map[string]Inbound), |
| 17 | hosts: make(map[string]Host), |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func (s *MemoryStore) UpsertInbound(inbound Inbound) (Inbound, error) { |
| 22 | s.mu.Lock() |
no outgoing calls