10 lines
183 B
Go
10 lines
183 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"golang.org/x/net/context"
|
||
|
)
|
||
|
|
||
|
type HandlerFunc func(ctx context.Context, req interface{}, rsp interface{}) error
|
||
|
|
||
|
type Wrapper func(HandlerFunc) HandlerFunc
|