v1

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 5 Imported by: 6

Documentation

Index

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
	RequestAuthSharedSecret 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) Execute

func (fs *FlowService) Execute(flowName string, req *Request) error

func (*FlowService) Pause

func (fs *FlowService) Pause(flowName string, requestId string) error

func (*FlowService) Register

func (fs *FlowService) Register(flowName string, handler runtime.FlowDefinitionHandler) error

func (*FlowService) Resume

func (fs *FlowService) Resume(flowName string, requestId string) 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

func (*FlowService) Stop

func (fs *FlowService) Stop(flowName string, requestId string) error

type Request

type Request struct {
	Body      []byte
	RequestId string
	Query     map[string][]string
	Header    map[string][]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL