diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index 2702ef2..786a288 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -1,8 +1,6 @@ package endpoint import ( - "errors" - "golang.org/x/net/context" ) @@ -17,13 +15,6 @@ // Middleware is a chainable behavior modifier for endpoints. type Middleware func(Endpoint) Endpoint -// ErrBadCast indicates an unexpected concrete request or response struct was -// received from an endpoint. -var ErrBadCast = errors.New("bad cast") - -// ErrContextCanceled indicates the request context was canceled. -var ErrContextCanceled = errors.New("context canceled") - // Chain is a helper function for composing middlewares. Requests will // traverse them in the order they're declared. That is, the first middleware // is treated as the outermost middleware.