type Router interface {
http.Handler// While this method signature is the same as ServeHTTP, it is// intended to support a different use case altogether. DoRequest(http.ResponseWriter, *http.Request)
Configure(*manifest.Manifest)
}
Builds a router from a service manifest. While we could fetch the manfiest
from the service, making it a parameter gives some more options about
how and when we acquire one.