setService sets a service in the State.
(srv Service)
| 245 | |
| 246 | // setService sets a service in the State. |
| 247 | func (s *State) setService(srv Service) { |
| 248 | // Always prepend the service key with the servicesStateKey to avoid collisions |
| 249 | s.Set(s.serviceKey(srv.String()), srv) |
| 250 | } |
| 251 | |
| 252 | // Delete removes a key-value pair from the State. |
| 253 | func (s *State) deleteService(srv Service) { |