| "veyron.io/veyron/veyron2/ipc" |
| "veyron.io/veyron/veyron2/security" |
| "veyron.io/veyron/veyron2/services/mgmt/repository" |
| // dispatcher holds the state of the binary repository dispatcher. |
| // NewDispatcher is the dispatcher factory. |
| func NewDispatcher(state *state, authorizer security.Authorizer) ipc.Dispatcher { |
| // DISPATCHER INTERFACE IMPLEMENTATION |
| func (d *dispatcher) Lookup(suffix, method string) (interface{}, security.Authorizer, error) { |
| return repository.BinaryServer(newBinaryService(d.state, suffix)), d.auth, nil |