code: func (a *Agent) AddService(service *structs.NodeService, chkTypes []*structs.CheckType, persist bool, token string, source configSource) error {
  	a.stateLock.Lock()
  	defer a.stateLock.Unlock()
  	return a.addServiceLocked(service, chkTypes, persist, token, source)
  }
docs: // AddService is used to add a service entry.
  // This entry is persistent and the agent will make a best effort to
  // ensure it is registered