Skip to content

Commit

Permalink
endpoint: remove unused errors
Browse files Browse the repository at this point in the history
Thanks, @groob and @Ayiga!
  • Loading branch information
peterbourgon committed Sep 8, 2016
1 parent d3b614b commit 6fa9bc9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions endpoint/endpoint.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package endpoint

import (
"errors"

"golang.org/x/net/context"
)

Expand All @@ -17,13 +15,6 @@ func Nop(context.Context, interface{}) (interface{}, error) { return struct{}{},
// 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.
Expand Down

0 comments on commit 6fa9bc9

Please sign in to comment.