func()

in pkg/topology/types.go [108:121]


func (t *Topology) Lookup(serviceGroup string) (*Service, error) {
	// walk the dependency tree from the roots; if we find the serviceGroup we know it's part of build-out
	var service *Service
	for i := range t.Services {
		if found := find(&t.Services[i], serviceGroup); found != nil {
			service = found
			break
		}
	}
	if service == nil {
		return nil, &ServiceNotFoundError{ServiceGroup: serviceGroup}
	}
	return service, nil
}