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