Package list golang-github-go-kit-kit / 6fa9bc9
endpoint: remove unused errors Thanks, @groob and @Ayiga! Peter Bourgon 5 years ago
1 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
00 package endpoint
11
22 import (
3 "errors"
4
53 "golang.org/x/net/context"
64 )
75
1614 // Middleware is a chainable behavior modifier for endpoints.
1715 type Middleware func(Endpoint) Endpoint
1816
19 // ErrBadCast indicates an unexpected concrete request or response struct was
20 // received from an endpoint.
21 var ErrBadCast = errors.New("bad cast")
22
23 // ErrContextCanceled indicates the request context was canceled.
24 var ErrContextCanceled = errors.New("context canceled")
25
2617 // Chain is a helper function for composing middlewares. Requests will
2718 // traverse them in the order they're declared. That is, the first middleware
2819 // is treated as the outermost middleware.