Skip to content
Snippets Groups Projects
Commit 371d986a authored by Alena Petraki's avatar Alena Petraki
Browse files

Добавлена возможность установки в сервер расширения проверки, основанной на...

Добавлена возможность установки в сервер расширения проверки, основанной на параметрах запроса и вызываемой до запуска Operation
parent 80aa7ca4
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,12 @@ func SingleExtension(extension Extension) ServerOption {
}
}
func WithRouteFn(fn RouteFn) ServerOption {
return func(c *Server) {
c.extensions = fn
}
}
type Server struct {
extensions RouteFn
wrapErr WrapErrFn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment