mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
Experimental server side wrappers for handlers
This commit is contained in:
@ -28,9 +28,13 @@ type rpcServer struct {
|
||||
}
|
||||
|
||||
func newRpcServer(opts ...Option) Server {
|
||||
options := newOptions(opts...)
|
||||
return &rpcServer{
|
||||
opts: newOptions(opts...),
|
||||
rpc: newServer(),
|
||||
opts: options,
|
||||
rpc: &server{
|
||||
serviceMap: make(map[string]*service),
|
||||
wrappers: options.wrappers,
|
||||
},
|
||||
handlers: make(map[string]Handler),
|
||||
subscribers: make(map[*subscriber][]broker.Subscriber),
|
||||
exit: make(chan chan error),
|
||||
|
Reference in New Issue
Block a user