1
0
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:
Asim
2015-12-02 00:47:52 +00:00
parent 0c9f8411bb
commit dae745f30f
4 changed files with 61 additions and 42 deletions

View File

@ -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),