Lots of progress on command/query bus concept, in memory sql testing, datasource admin

This commit is contained in:
Torkel Ödegaard
2014-12-16 21:05:49 +01:00
parent 27f07e9de2
commit c7ed348ee8
8 changed files with 170 additions and 52 deletions
-2
View File
@@ -2,7 +2,6 @@ package bus
import (
"errors"
"fmt"
"reflect"
)
@@ -50,7 +49,6 @@ func (b *InProcBus) Dispatch(msg Msg) error {
func (b *InProcBus) AddHandler(handler HandlerFunc) {
handlerType := reflect.TypeOf(handler)
queryTypeName := handlerType.In(0).Elem().Name()
fmt.Printf("QueryType %v\n", queryTypeName)
b.handlers[queryTypeName] = handler
}