|
|
|
@ -5,6 +5,7 @@ import (
|
|
|
|
|
"encoding/json" |
|
|
|
|
"fmt" |
|
|
|
|
"git.hpds.cc/Component/network/metadata" |
|
|
|
|
"git.hpds.cc/Component/network/router" |
|
|
|
|
"net/http" |
|
|
|
|
|
|
|
|
|
"git.hpds.cc/Component/network" |
|
|
|
@ -139,7 +140,11 @@ func (z *messageQueue) ConfigWorkflow(conf string) error {
|
|
|
|
|
func (z *messageQueue) configWorkflow(config *config.WorkflowConfig) error { |
|
|
|
|
z.wfc = config |
|
|
|
|
z.server.ConfigMetadataBuilder(metadata.DefaultBuilder()) |
|
|
|
|
z.server.ConfigRouter(newRouter(config.Functions)) |
|
|
|
|
funcList := make([]string, len(config.Functions)) |
|
|
|
|
for k, v := range config.Functions { |
|
|
|
|
funcList[k] = v.Name |
|
|
|
|
} |
|
|
|
|
z.server.ConfigRouter(router.Default(funcList)) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|