Skip to content
Snippets Groups Projects
Commit b35ccff4 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feaature/PRXS-1619-SyncAsyncOperations' into 'master'

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

See merge request perxis/perxis-go!102
parents 80aa7ca4 371d986a
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,12 @@ func SingleExtension(extension Extension) ServerOption { ...@@ -73,6 +73,12 @@ func SingleExtension(extension Extension) ServerOption {
} }
} }
func WithRouteFn(fn RouteFn) ServerOption {
return func(c *Server) {
c.extensions = fn
}
}
type Server struct { type Server struct {
extensions RouteFn extensions RouteFn
wrapErr WrapErrFn 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