Documentation ¶
Index ¶
- type ServiceCache
- func (s *ServiceCache) Add(e *common.Service, id string, data interface{}, local bool) error
- func (s *ServiceCache) DeleteByID(id string, local bool)
- func (s *ServiceCache) Find(ip net.IP, port int, host string, local bool) interface{}
- func (s *ServiceCache) FindListeningServicesForPU(id string) (interface{}, *portspec.PortSpec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceCache ¶
ServiceCache is a new service cache
func (*ServiceCache) Add ¶
Add adds a service into the cache. Returns error of if any overlap has been detected.
func (*ServiceCache) DeleteByID ¶
func (s *ServiceCache) DeleteByID(id string, local bool)
DeleteByID will delete all entries related to this ID from all references.
func (*ServiceCache) Find ¶
Find searches for a matching service, given an IP and port. Caller must specify the local or remote context.
func (*ServiceCache) FindListeningServicesForPU ¶
func (s *ServiceCache) FindListeningServicesForPU(id string) (interface{}, *portspec.PortSpec)
FindListeningServicesForPU returns a service that is found and the associated portSpecifications that refer to this service.
Click to show internal directories.
Click to hide internal directories.