PoweredLocal/vrata

View on GitHub
app/Services/ServiceRegistryContract.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Services;

/**
 * Interface ServiceRegistryContract
 * @package App\Services
 */
interface ServiceRegistryContract
{
    /**
     * Find an instance of a specified microservice
     * Returns URL (RESTful services always have URLs)
     *
     * @param $serviceId
     * @return string
     */
    public function resolveInstance($serviceId);
}