MCPcopy
hub / github.com/google/seesaw / deleteService

Method deleteService

engine/vserver.go:726–735  ·  view source on GitHub ↗

deleteService deletes a service for a vserver.

(s *service)

Source from the content-addressed store, hash-verified

724
725// deleteService deletes a service for a vserver.
726func (v *vserver) deleteService(s *service) {
727 if s.active {
728 s.healthy = false
729 v.updateState(s.ip)
730 }
731 log.Infof("%v: deleting service: %v", v, s)
732 delete(v.services, s.serviceKey)
733 // TODO(baptr): Once service contains seesaw.VIP, move check and
734 // unconfigureVIP here.
735}
736
737// handleCheckNotification processes a checkNotification, bringing
738// destinations, services, and vservers up or down appropriately.

Callers 1

configUpdateMethod · 0.95

Calls 1

updateStateMethod · 0.95

Tested by

no test coverage detected