installInterfaceLocked is the lock-held implementation of InstallInterface.
(iface *Interface)
| 586 | |
| 587 | // installInterfaceLocked is the lock-held implementation of InstallInterface. |
| 588 | func (s *Server) installInterfaceLocked(iface *Interface) *Interface { |
| 589 | if existing, ok := s.interfaces[iface.TypeName()]; ok { |
| 590 | return existing |
| 591 | } |
| 592 | s.interfaces[iface.TypeName()] = iface |
| 593 | s.interfacesDirty = true |
| 594 | s.invalidateSchemaCache() |
| 595 | return iface |
| 596 | } |
| 597 | |
| 598 | // interfaceRelationSet records "type implements interface" pairs, keyed by type |
| 599 | // name then interface name. |
no test coverage detected