Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-03-24 15:22:20 +03:00
parent 9ad01954dc
commit e93c6dc1de
4 changed files with 47 additions and 29 deletions

View File

@@ -64,3 +64,6 @@ type errorHandlerKey struct{}
func ErrorHandler(fn func(ctx context.Context, s server.Handler, w http.ResponseWriter, r *http.Request, err error, status int)) server.Option {
return server.SetOption(errorHandlerKey{}, fn)
}
// type pathHandlerKey struct{}
// PathHandler specifies http handler for path