Experimental server side wrappers for handlers
This commit is contained in:
9
server/server_wrapper.go
Normal file
9
server/server_wrapper.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type HandlerFunc func(ctx context.Context, req interface{}, rsp interface{}) error
|
||||
|
||||
type Wrapper func(HandlerFunc) HandlerFunc
|
||||
Reference in New Issue
Block a user