mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-22 21:05:48 +08:00
18 lines
240 B
Go
18 lines
240 B
Go
package dispatcher
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
var (
|
|
instance WorkflowDispatcher
|
|
intanceOnce sync.Once
|
|
)
|
|
|
|
func GetSingletonDispatcher() WorkflowDispatcher {
|
|
intanceOnce.Do(func() {
|
|
instance = newWorkflowDispatcher()
|
|
})
|
|
return instance
|
|
}
|