Documentation ¶
Index ¶
- func InterpreterImpl(ctx UnifiedContext, provider WorkflowProvider, ...) (*service.InterpreterWorkflowOutput, error)
- func RegisterActivityProvider(backendType service.BackendType, provider ActivityProvider)
- func StateDecide(ctx context.Context, backendType service.BackendType, ...) (*iwfidl.WorkflowStateDecideResponse, error)
- func StateStart(ctx context.Context, backendType service.BackendType, ...) (*iwfidl.WorkflowStateStartResponse, error)
- type ActivityLogger
- type ActivityOptions
- type ActivityProvider
- type AttributeManager
- func (am *AttributeManager) GetAllQueryAttributes() []iwfidl.KeyValue
- func (am *AttributeManager) GetAllSearchAttributes() []iwfidl.SearchAttribute
- func (am *AttributeManager) GetQueryAttributesByKey(request service.QueryAttributeRequest) service.QueryAttributeResponse
- func (am *AttributeManager) ProcessUpsertQueryAttribute(attributes []iwfidl.KeyValue) error
- func (am *AttributeManager) ProcessUpsertSearchAttribute(attributes []iwfidl.SearchAttribute) error
- type Future
- type InterStateChannel
- type ReceiveChannel
- type StateExecutionIdManager
- type UnifiedContext
- type WorkflowExecution
- type WorkflowInfo
- type WorkflowProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpreterImpl ¶
func InterpreterImpl(ctx UnifiedContext, provider WorkflowProvider, input service.InterpreterWorkflowInput) (*service.InterpreterWorkflowOutput, error)
func RegisterActivityProvider ¶
func RegisterActivityProvider(backendType service.BackendType, provider ActivityProvider)
func StateDecide ¶
func StateDecide(ctx context.Context, backendType service.BackendType, input service.StateDecideActivityInput) (*iwfidl.WorkflowStateDecideResponse, error)
func StateStart ¶
func StateStart(ctx context.Context, backendType service.BackendType, input service.StateStartActivityInput) (*iwfidl.WorkflowStateStartResponse, error)
Types ¶
type ActivityLogger ¶
type ActivityOptions ¶
type ActivityProvider ¶
type ActivityProvider interface { GetLogger(ctx context.Context) ActivityLogger NewApplicationError(message, errType string, details ...interface{}) error }
type AttributeManager ¶
type AttributeManager struct {
// contains filtered or unexported fields
}
func NewAttributeManager ¶
func NewAttributeManager(searchAttributeUpserter func(attributes map[string]interface{}) error) *AttributeManager
func (*AttributeManager) GetAllQueryAttributes ¶
func (am *AttributeManager) GetAllQueryAttributes() []iwfidl.KeyValue
func (*AttributeManager) GetAllSearchAttributes ¶
func (am *AttributeManager) GetAllSearchAttributes() []iwfidl.SearchAttribute
func (*AttributeManager) GetQueryAttributesByKey ¶
func (am *AttributeManager) GetQueryAttributesByKey(request service.QueryAttributeRequest) service.QueryAttributeResponse
func (*AttributeManager) ProcessUpsertQueryAttribute ¶
func (am *AttributeManager) ProcessUpsertQueryAttribute(attributes []iwfidl.KeyValue) error
func (*AttributeManager) ProcessUpsertSearchAttribute ¶
func (am *AttributeManager) ProcessUpsertSearchAttribute(attributes []iwfidl.SearchAttribute) error
type Future ¶
type Future interface {
Get(ctx UnifiedContext, valuePtr interface{}) error
}
type InterStateChannel ¶
type InterStateChannel struct {
// contains filtered or unexported fields
}
func NewInterStateChannel ¶
func NewInterStateChannel() *InterStateChannel
func (*InterStateChannel) HasData ¶
func (i *InterStateChannel) HasData(channelName string) bool
func (*InterStateChannel) ProcessPublishing ¶
func (i *InterStateChannel) ProcessPublishing(publishes []iwfidl.InterStateChannelPublishing)
func (*InterStateChannel) Retrieve ¶
func (i *InterStateChannel) Retrieve(channelName string) *iwfidl.EncodedObject
type ReceiveChannel ¶
type ReceiveChannel interface {
Receive(ctx UnifiedContext, valuePtr interface{}) (more bool)
}
type StateExecutionIdManager ¶
type StateExecutionIdManager struct {
// contains filtered or unexported fields
}
func NewStateExecutionIdManager ¶
func NewStateExecutionIdManager() *StateExecutionIdManager
func (*StateExecutionIdManager) IncAndGetNextExecutionId ¶
func (sm *StateExecutionIdManager) IncAndGetNextExecutionId(stateId string) string
type UnifiedContext ¶
type UnifiedContext interface {
GetContext() interface{}
}
func NewUnifiedContext ¶
func NewUnifiedContext(ctx interface{}) UnifiedContext
type WorkflowExecution ¶
WorkflowExecution details.
type WorkflowInfo ¶
type WorkflowInfo struct { WorkflowExecution WorkflowExecution WorkflowStartTime time.Time }
WorkflowInfo information about currently executing workflow
type WorkflowProvider ¶
type WorkflowProvider interface { NewApplicationError(message, errType string, details ...interface{}) error GetWorkflowInfo(ctx UnifiedContext) WorkflowInfo UpsertSearchAttributes(ctx UnifiedContext, attributes map[string]interface{}) error SetQueryHandler(ctx UnifiedContext, queryType string, handler interface{}) error ExtendContextWithValue(parent UnifiedContext, key string, val interface{}) UnifiedContext GoNamed(ctx UnifiedContext, name string, f func(ctx UnifiedContext)) Await(ctx UnifiedContext, condition func() bool) error WithActivityOptions(ctx UnifiedContext, options ActivityOptions) UnifiedContext ExecuteActivity(ctx UnifiedContext, activity interface{}, args ...interface{}) (future Future) Now(ctx UnifiedContext) time.Time Sleep(ctx UnifiedContext, d time.Duration) (err error) GetSignalChannel(ctx UnifiedContext, signalName string) (receiveChannel ReceiveChannel) GetContextValue(ctx UnifiedContext, key string) interface{} GetVersion(ctx UnifiedContext, changeID string, minSupported, maxSupported int) int GetBackendType() service.BackendType }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.