32 lines
633 B
Go
32 lines
633 B
Go
package flow_definition
|
|
|
|
import (
|
|
"github.com/Superdanda/hade/framework"
|
|
)
|
|
|
|
type FlowDefinitionProvider struct {
|
|
framework.ServiceProvider
|
|
|
|
c framework.Container
|
|
}
|
|
|
|
func (sp *FlowDefinitionProvider) Name() string {
|
|
return FlowDefinitionKey
|
|
}
|
|
|
|
func (sp *FlowDefinitionProvider) Register(c framework.Container) framework.NewInstance {
|
|
return NewFlowDefinitionService
|
|
}
|
|
|
|
func (sp *FlowDefinitionProvider) IsDefer() bool {
|
|
return false
|
|
}
|
|
|
|
func (sp *FlowDefinitionProvider) Params(c framework.Container) []interface{} {
|
|
return []interface{}{c}
|
|
}
|
|
|
|
func (sp *FlowDefinitionProvider) Boot(c framework.Container) error {
|
|
return nil
|
|
}
|