| "veyron/services/mgmt/node" |
| "veyron2/services/mgmt/application" |
| // dispatcher holds the state of the node manager dispatcher. |
| // NewDispatcher is the node manager dispatcher factory. |
| func NewDispatcher(auth security.Authorizer, envelope *application.Envelope, name, previous string) *dispatcher { |
| channels: make(map[string]chan string), |
| channelsMutex: new(sync.Mutex), |
| updatingMutex: new(sync.Mutex), |
| // DISPATCHER INTERFACE IMPLEMENTATION |
| func (d *dispatcher) Lookup(suffix string) (ipc.Invoker, security.Authorizer, error) { |
| return ipc.ReflectInvoker(node.NewServerNode(NewInvoker(d.state, suffix))), d.auth, nil |