Fix web registry compatability bugs

This commit is contained in:
Ben Toogood
2020-04-03 09:18:30 +01:00
parent 8b35c264eb
commit fdcb013f24
3 changed files with 17 additions and 3 deletions

View File

@@ -2,9 +2,15 @@
package resolver
import (
"errors"
"net/http"
)
var (
ErrNotFound = errors.New("not found")
ErrInvalidPath = errors.New("invalid path")
)
// Resolver resolves requests to endpoints
type Resolver interface {
Resolve(r *http.Request) (*Endpoint, error)