mirror of
https://github.com/sourcegraph/jsonrpc2.git
synced 2026-06-17 12:40:03 +02:00
add go module, simplify some cleanups
This commit is contained in:
parent
456318691a
commit
375ca94e9c
4 changed files with 11 additions and 13 deletions
|
|
@ -11,7 +11,8 @@ func HandlerWithError(handleFunc func(context.Context, *Conn, *Request) (result
|
|||
return &HandlerWithErrorConfigurer{handleFunc: handleFunc}
|
||||
}
|
||||
|
||||
// HandlerWithErrorConfigurer is a handler configuration struct
|
||||
|
||||
// HandlerWithErrorConfigurer is a handler created by HandlerWithError.
|
||||
type HandlerWithErrorConfigurer struct {
|
||||
handleFunc func(context.Context, *Conn, *Request) (result interface{}, err error)
|
||||
suppressErrClosed bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue