Documentation ¶
Index ¶
- Constants
- type FlowService
- func (fs *FlowService) ConfigureDefault()
- func (fs *FlowService) Execute(flowName string, req *Request) error
- func (fs *FlowService) Pause(flowName string, requestId string) error
- func (fs *FlowService) Register(flowName string, handler runtime.FlowDefinitionHandler) error
- func (fs *FlowService) Resume(flowName string, requestId string) error
- func (fs *FlowService) Start() error
- func (fs *FlowService) StartServer() error
- func (fs *FlowService) StartWorker() error
- func (fs *FlowService) Stop(flowName string, requestId string) error
- type Request
Constants ¶
View Source
const ( DefaultTraceUrl = "localhost:5775" DefaultRedisUrl = "localhost:6379" DefaultWorkerConcurrency = 2 DefaultWebServerPort = 8080 DefaultReadTimeoutSecond = 120 DefaultWriteTimeoutSecond = 120 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowService ¶
type FlowService struct { Port int RedisURL string RequestAuthEnabled bool WorkerConcurrency int RetryCount int Flows map[string]runtime.FlowDefinitionHandler RequestReadTimeout time.Duration RequestWriteTimeout time.Duration OpenTraceUrl string DataStore sdk.DataStore Logger sdk.Logger EnableMonitoring bool DebugEnabled bool // contains filtered or unexported fields }
func (*FlowService) ConfigureDefault ¶
func (fs *FlowService) ConfigureDefault()
func (*FlowService) Register ¶
func (fs *FlowService) Register(flowName string, handler runtime.FlowDefinitionHandler) error
func (*FlowService) Start ¶
func (fs *FlowService) Start() error
func (*FlowService) StartServer ¶
func (fs *FlowService) StartServer() error
func (*FlowService) StartWorker ¶
func (fs *FlowService) StartWorker() error
Click to show internal directories.
Click to hide internal directories.